|
votca 2026-dev
|
Platform independent random numbers for the stochastic models: mt19937_64 with self-written transforms (the std:: distributions differ between standard libraries). More...
#include <stochasticnetwork.h>
Public Member Functions | |
| ModelRandom (std::uint64_t seed, std::uint64_t stream) | |
| independent streams for the same seed (points, energies, pairs) | |
| double | Uniform () |
| in (0,1] | |
| double | Normal () |
| Index | Poisson (double mean) |
| Poisson distributed count. | |
| Index | Integer (Index n) |
| integer in [0, n) | |
Private Attributes | |
| std::mt19937_64 | engine_ |
| bool | has_spare_ = false |
| double | spare_ = 0.0 |
Platform independent random numbers for the stochastic models: mt19937_64 with self-written transforms (the std:: distributions differ between standard libraries).
Definition at line 51 of file stochasticnetwork.h.
| votca::xtp::ModelRandom::ModelRandom | ( | std::uint64_t | seed, |
| std::uint64_t | stream ) |
independent streams for the same seed (points, energies, pairs)
Definition at line 45 of file stochasticnetwork.cc.
integer in [0, n)
Definition at line 84 of file stochasticnetwork.cc.
| double votca::xtp::ModelRandom::Normal | ( | ) |
Definition at line 53 of file stochasticnetwork.cc.
| Index votca::xtp::ModelRandom::Poisson | ( | double | mean | ) |
Poisson distributed count.
Definition at line 65 of file stochasticnetwork.cc.
|
inline |
in (0,1]
Definition at line 56 of file stochasticnetwork.h.
|
private |
Definition at line 66 of file stochasticnetwork.h.
|
private |
Definition at line 67 of file stochasticnetwork.h.
|
private |
Definition at line 68 of file stochasticnetwork.h.