#include <rand-normal.h>
Public Types | |
typedef double | T_numtype |
typedef T | T_numtype |
Public Member Functions | |
Normal (double mean=0.0, double variance=1.0, double=0.0) | |
void | randomize () |
double | random () |
Normal (T mean, T standardDeviation) | |
Normal (T mean, T standardDeviation, unsigned int i) | |
T | random () |
Private Attributes | |
double | mean_ |
double | sigma_ |
P_uniform | uniform_ |
T | mean_ |
T | standardDeviation_ |
Reimplemented from NormalUnit< T, IRNG, stateTag >.
typedef double Normal< BZ_TEMPLATE_DEFAULT >::T_numtype |
Reimplemented from NormalUnit< T, IRNG, stateTag >.
Normal< BZ_TEMPLATE_DEFAULT >::Normal | ( | double | mean = 0.0 , |
|
double | variance = 1.0 , |
|||
double | = 0.0 | |||
) | [inline] |
T Normal< BZ_TEMPLATE_DEFAULT >::random | ( | void | ) | [inline] |
Reimplemented from NormalUnit< T, IRNG, stateTag >.
References Normal< BZ_TEMPLATE_DEFAULT >::mean_, Normal< BZ_TEMPLATE_DEFAULT >::random(), and Normal< BZ_TEMPLATE_DEFAULT >::standardDeviation_.
double Normal< BZ_TEMPLATE_DEFAULT >::random | ( | void | ) | [inline] |
Reimplemented from NormalUnit< T, IRNG, stateTag >.
References BZ_MATHFN_SCOPE, and M_PI.
Referenced by Normal< BZ_TEMPLATE_DEFAULT >::random().
void Normal< BZ_TEMPLATE_DEFAULT >::randomize | ( | ) | [inline] |
double Normal< BZ_TEMPLATE_DEFAULT >::mean_ [private] |
Referenced by Normal< BZ_TEMPLATE_DEFAULT >::Normal(), and Normal< BZ_TEMPLATE_DEFAULT >::random().
double Normal< BZ_TEMPLATE_DEFAULT >::sigma_ [private] |
T Normal< BZ_TEMPLATE_DEFAULT >::standardDeviation_ [private] |
Referenced by Normal< BZ_TEMPLATE_DEFAULT >::Normal(), and Normal< BZ_TEMPLATE_DEFAULT >::random().
P_uniform Normal< BZ_TEMPLATE_DEFAULT >::uniform_ [private] |