6 #ifndef DISCRETE_RANDOM_VARIABLE_H
7 #define DISCRETE_RANDOM_VARIABLE_H
32 double Sample()
override;
33 double ProbabilityDensity(
const double x);
34 double GetMean()
override;
37 std::string
Info()
const override
39 std::stringstream buffer;
40 buffer <<
"DiscreteRandomVariable" ;
46 void PrintInfo(std::ostream& rOStream)
const override
48 rOStream <<
"DiscreteRandomVariable";
53 void PrintData(std::ostream& rOStream)
const override
59 void Check()
override;
69 double mRelativeClosenessTolerance = 0.0;
70 std::vector<double> mRelativeFrequencies;
71 std::vector<double> mPossibleValues;
72 std::mt19937 mRandomNumberGenerator;
73 std::discrete_distribution<> mTrapezoidsDiscreteDistribution;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: discrete_random_variable.h:21
std::string Info() const override
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: discrete_random_variable.h:37
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: discrete_random_variable.h:46
KRATOS_CLASS_POINTER_DEFINITION(DiscreteRandomVariable)
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: discrete_random_variable.h:53
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
Definition: random_variable.h:19
int seed
Definition: GenerateWind.py:138
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def Normalize(v)
Definition: embedded.py:28
x
Definition: sensitivityMatrix.py:49