chrono::ChDistribution Class Referenceabstract

Description

Base class for all random distributions.

#include <ChDistribution.h>

Inheritance diagram for chrono::ChDistribution:

Public Member Functions

virtual ~ChDistribution ()
 Default destructor for distribution object.
 
virtual double GetRandom ()=0
 Compute a random value whose probability is defined by the distribution. More...
 

Member Function Documentation

virtual double chrono::ChDistribution::GetRandom ( )
pure virtual

Compute a random value whose probability is defined by the distribution.

MUST be implemented by children classes.

Implemented in chrono::ChDiscreteDistribution, chrono::ChContinuumDistribution, chrono::ChZhangDistribution, chrono::ChWeibullDistribution, chrono::ChNormalDistribution, chrono::ChMinMaxDistribution, and chrono::ChConstantDistribution.