PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
#include <random>
Go to the source code of this file.
Data Structures | |
class | util::DistributionSample< T > |
Templated probability distribution. More... | |
Namespaces | |
namespace | util |
Collection of methods useful in simulation. | |
Typedefs | |
typedef std::mt19937 | RandGenerator |
typedef std::lognormal_distribution | LogNormalDistribution |
typedef std::uniform_real_distribution | UniformDistribution |
typedef std::normal_distribution | NormalDistribution |
typedef std::uniform_int_distribution | UniformIntDistribution |
Functions | |
RandGenerator | util::get_rd_gen (int seed=-1) |
Return random number generator. | |
std::default_random_engine | util::get_rd_engine (int &seed) |
Return random number generator. | |
double | util::transform_to_normal_dist (double mean, double std, double sample) |
Transform sample from N(0,1) to N(mean, std^2) | |
double | util::transform_to_uniform_dist (double min, double max, double sample) |
Transform sample from U(0,1) to U(a,b) | |
typedef std::lognormal_distribution LogNormalDistribution |
Definition at line 17 of file randomDist.h.
typedef std::normal_distribution NormalDistribution |
Definition at line 19 of file randomDist.h.
typedef std::mt19937 RandGenerator |
Definition at line 16 of file randomDist.h.
typedef std::uniform_real_distribution UniformDistribution |
Definition at line 18 of file randomDist.h.
typedef std::uniform_int_distribution UniformIntDistribution |
Definition at line 20 of file randomDist.h.