PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Templated probability distribution. More...
#include <randomDist.h>
Public Member Functions | |
DistributionSample (double arg1, double arg2, int seed=-1) | |
Constructor. | |
DistributionSample () | |
Constructor. | |
void | init (double arg1, double arg2, int seed=-1) |
Initialize the distribution. | |
double | operator() () |
Sample from the distribution. | |
Data Fields | |
int | d_seed |
Seed. | |
RandGenerator | d_gen |
Random number generator. | |
T | d_dist |
Templated distribution. | |
Templated probability distribution.
Template could be log-normal, normal, or uniform distribution
Definition at line 90 of file randomDist.h.
|
inline |
Constructor.
arg1 | Argument 1 (in case of normal distribution this is mean) |
arg2 | Argument 2 (in case of normal distribution this is std) |
seed | Seed |
Definition at line 99 of file randomDist.h.
|
inline |
|
inline |
Initialize the distribution.
arg1 | Argument 1 (in case of normal distribution this is mean) |
arg2 | Argument 2 (in case of normal distribution this is std) |
seed | Seed |
Definition at line 114 of file randomDist.h.
References util::DistributionSample< T >::d_dist, util::DistributionSample< T >::d_gen, util::DistributionSample< T >::d_seed, and util::get_rd_gen().
|
inline |
Sample from the distribution.
Definition at line 125 of file randomDist.h.
References util::DistributionSample< T >::d_dist, and util::DistributionSample< T >::d_gen.
T util::DistributionSample< T >::d_dist |
Templated distribution.
Definition at line 136 of file randomDist.h.
Referenced by util::DistributionSample< T >::init(), and util::DistributionSample< T >::operator()().
RandGenerator util::DistributionSample< T >::d_gen |
Random number generator.
Definition at line 133 of file randomDist.h.
Referenced by util::DistributionSample< T >::init(), and util::DistributionSample< T >::operator()().
int util::DistributionSample< T >::d_seed |
Seed.
Definition at line 130 of file randomDist.h.
Referenced by util::DistributionSample< T >::init().