KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
#include <discrete_random_variable.h>
Public Member Functions | |
KRATOS_CLASS_POINTER_DEFINITION (DiscreteRandomVariable) | |
DiscreteRandomVariable () | |
Default constructor. More... | |
DiscreteRandomVariable (const Parameters rParameters) | |
DiscreteRandomVariable (const Parameters rParameters, const int seed) | |
double | Sample () override |
double | ProbabilityDensity (const double x) |
double | GetMean () override |
std::string | Info () const override |
Turn back information as a stemplate<class T, std::size_t dim> tring. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from Kratos::RandomVariable | |
KRATOS_CLASS_POINTER_DEFINITION (RandomVariable) | |
RandomVariable () | |
Default constructor. More... | |
RandomVariable (const Parameters rParameters) | |
virtual | ~RandomVariable () |
Destructor. More... | |
const array_1d< double, 2 > & | GetSupport () |
Protected Member Functions | |
void | Check () override |
Protected Member Functions inherited from Kratos::RandomVariable | |
template<typename T > | |
void | CalculateFirstAndLastIndicesWithNonzeroValue (std::vector< T > values, size_t &low_index, size_t &high_index) |
void | SetSupport (const double Min, const double Max) |
Additional Inherited Members | |
Protected Attributes inherited from Kratos::RandomVariable | |
double | mMean = 0.0 |
bool | mMeanHasAlreadyBeenCalculated =false |
Kratos::DiscreteRandomVariable::DiscreteRandomVariable | ( | ) |
Default constructor.
Kratos::DiscreteRandomVariable::DiscreteRandomVariable | ( | const Parameters | rParameters | ) |
Kratos::DiscreteRandomVariable::DiscreteRandomVariable | ( | const Parameters | rParameters, |
const int | seed | ||
) |
|
overrideprotectedvirtual |
Reimplemented from Kratos::RandomVariable.
|
overridevirtual |
Reimplemented from Kratos::RandomVariable.
|
inlineoverridevirtual |
Turn back information as a stemplate<class T, std::size_t dim> tring.
Reimplemented from Kratos::RandomVariable.
Kratos::DiscreteRandomVariable::KRATOS_CLASS_POINTER_DEFINITION | ( | DiscreteRandomVariable | ) |
|
inlineoverridevirtual |
Print object's data.
Reimplemented from Kratos::RandomVariable.
|
inlineoverridevirtual |
Print information about this object.
Reimplemented from Kratos::RandomVariable.
|
overridevirtual |
Reimplemented from Kratos::RandomVariable.