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.
Public Member Functions | Protected Member Functions | List of all members
Kratos::PiecewiseLinearRandomVariable Class Reference

#include <piecewise_linear_random_variable.h>

Inheritance diagram for Kratos::PiecewiseLinearRandomVariable:
Collaboration diagram for Kratos::PiecewiseLinearRandomVariable:

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (PiecewiseLinearRandomVariable)
 
 PiecewiseLinearRandomVariable ()
 Default constructor. More...
 
 PiecewiseLinearRandomVariable (const Parameters rParameters)
 
 PiecewiseLinearRandomVariable (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
 

Constructor & Destructor Documentation

◆ PiecewiseLinearRandomVariable() [1/3]

Kratos::PiecewiseLinearRandomVariable::PiecewiseLinearRandomVariable ( )

Default constructor.

◆ PiecewiseLinearRandomVariable() [2/3]

Kratos::PiecewiseLinearRandomVariable::PiecewiseLinearRandomVariable ( const Parameters  rParameters)

◆ PiecewiseLinearRandomVariable() [3/3]

Kratos::PiecewiseLinearRandomVariable::PiecewiseLinearRandomVariable ( const Parameters  rParameters,
const int  seed 
)

Member Function Documentation

◆ Check()

void Kratos::PiecewiseLinearRandomVariable::Check ( )
overrideprotectedvirtual

Reimplemented from Kratos::RandomVariable.

◆ GetMean()

double Kratos::PiecewiseLinearRandomVariable::GetMean ( )
overridevirtual

Reimplemented from Kratos::RandomVariable.

◆ Info()

std::string Kratos::PiecewiseLinearRandomVariable::Info ( ) const
inlineoverridevirtual

Turn back information as a stemplate<class T, std::size_t dim> tring.

Reimplemented from Kratos::RandomVariable.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::PiecewiseLinearRandomVariable::KRATOS_CLASS_POINTER_DEFINITION ( PiecewiseLinearRandomVariable  )

◆ PrintData()

void Kratos::PiecewiseLinearRandomVariable::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::RandomVariable.

◆ PrintInfo()

void Kratos::PiecewiseLinearRandomVariable::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::RandomVariable.

◆ ProbabilityDensity()

double Kratos::PiecewiseLinearRandomVariable::ProbabilityDensity ( const double  x)

◆ Sample()

double Kratos::PiecewiseLinearRandomVariable::Sample ( )
overridevirtual

Reimplemented from Kratos::RandomVariable.


The documentation for this class was generated from the following files: