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 () override
 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

◆ GetRandom()

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

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

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

Implements chrono::ChDistribution.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/core/ChDistribution.h