NanoMagMC
v0.2
Monte Carlo Simulation Software for Atomistic Models of Magnetic Materials
|
Generator for random numbers on a lognormal distribution. More...
#include <stdrand.hpp>
Public Member Functions | |
std_lognormrand (double m, double sdin, int seed) | |
Constructor. More... | |
std_lognormrand (double m, double sdin, int size, int seed) | |
Constructor with dummy size. More... | |
~std_lognormrand () | |
Default destructor. More... | |
double | gen () |
Return a single random number. More... | |
![]() | |
std_randbase () | |
Default constructor. More... | |
~std_randbase () | |
Default destructor. More... | |
void | change_seed (int seed) |
Change the current random seed. More... | |
void | jump () |
Jump forward 2^64 places. More... | |
Additional Inherited Members | |
![]() | |
rng::rng128 | generator |
Generator for random numbers on a lognormal distribution.
stdrand::std_lognormrand::std_lognormrand | ( | double | m, |
double | sdin, | ||
int | seed | ||
) |
Constructor.
m | The logarithmic mean of the lognormal distribution. |
sdin | The logarithmic standard deviation of the lognormal distribution. |
seed | The inital seed of the random number generator. |
|
inline |
Constructor with dummy size.
m | The logarithmic mean of the lognormal distribution. |
sdin | The logarithmic standard deviation of the lognormal distribution. |
seed | The inital seed of the random number generator. |
size | A dummy size input for compatibility with Intel RNG. |
|
inline |
Default destructor.
|
inlinevirtual |
Return a single random number.
Reimplemented from stdrand::std_randbase.