random_events.h Source File
|
CPP API
|
random_events.h
Go to the documentation of this file.
59 //check if any transition happens using exponential distribution with the sum of all transition rates
60 auto sum = std::accumulate(std::begin(transitions), std::end(transitions), 0.0, [](auto&& a, auto&& t) {
T random_transition(RNG &rng, T current_state, TimeSpan dt, const std::pair< T, ScalarType >(&transitions)[NumTransitions])
Select a random transition from a list of possible transitions from the current state to others.
Definition: random_events.h:50
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
requires details::IsElementReference< M > RowMajorIterator< M, false > end(M &m)
create a non-const end iterator for the matrix m.
Definition: eigen_util.h:449
requires details::IsElementReference< M > RowMajorIterator< M, false > begin(M &m)
create a non-const iterator to first element of the matrix m.
Definition: eigen_util.h:421
Generated by