![]() |
WarpTwin
Documentation for WarpTwin models and classes.
|
Class to generate random numbers according to normal distribution. More...
#include <NormalRandom.hpp>

Public Member Functions | |
| NormalRandom (T set_mean, T set_std, unsigned int seed=0) | |
| Constructor for the normal random distribution. | |
| ~NormalRandom () | |
| T | operator() () |
Public Attributes | |
| clockwerk::DataIO< T > | mean = clockwerk::DataIO<T>(this, "mean") |
| The mean of the random output. Can be get/set. | |
| clockwerk::DataIO< T > | std = clockwerk::DataIO<T>(this, "std") |
| The standard deviation of the random output. Can be get/set. | |
Protected Attributes | |
| std::mt19937 | _engine |
| std::normal_distribution< double > | _distribution |
Class to generate random numbers according to normal distribution.
This function generates a random normal distribution draw according to the mt19937 engine and a std::normal_distribution. It produces random numbers according to the mean, std, and seed set in the constructor. Mean and std may be modified via standard setters mean and std.
| warptwin::NormalRandom< T >::NormalRandom | ( | T | set_mean, |
| T | set_std, | ||
| unsigned int | seed = 0 ) |
|
inline |
| T warptwin::NormalRandom< T >::operator() | ( | ) |
|
protected |
|
protected |
| clockwerk::DataIO<T> warptwin::NormalRandom< T >::mean = clockwerk::DataIO<T>(this, "mean") |
The mean of the random output. Can be get/set.
| clockwerk::DataIO<T> warptwin::NormalRandom< T >::std = clockwerk::DataIO<T>(this, "std") |
The standard deviation of the random output. Can be get/set.