random_events.h File Reference

CPP API: random_events.h File Reference
random_events.h File Reference
#include "abm/time.h"
#include "memilio/utils/random_number_generator.h"
#include <algorithm>
#include <array>
#include <numeric>
Include dependency graph for random_events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mio
 A collection of classes to simplify handling of matrix shapes in meta programming.
 
 mio::abm
 

Functions

template<class RNG , class T , size_t NumTransitions>
mio::abm::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. More...