chrono::ChConstantDistribution Class Reference

Description

Class for a distribution with a single 'value' that has probability 1.0 (that is, the distribution has a spike corresponding to 'value' and zero elsewhere).

#include <ChDistribution.h>

Inheritance diagram for chrono::ChConstantDistribution:
Collaboration diagram for chrono::ChConstantDistribution:

Public Member Functions

 ChConstantDistribution (double mvalue)
 
virtual double GetRandom ()
 Compute a random value whose probability is defined by the distribution. More...
 
- Public Member Functions inherited from chrono::ChDistribution
virtual ~ChDistribution ()
 Default destructor for distribution object.
 

Member Function Documentation

virtual double chrono::ChConstantDistribution::GetRandom ( )
virtual

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

In this very simple case, however, returns always the single value.

Implements chrono::ChDistribution.