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 <ChRandom.h>
Inheritance diagram for chrono::ChConstantDistribution:

Collaboration diagram for chrono::ChConstantDistribution:

Public Member Functions | |
ChConstantDistribution (double value) | |
virtual double | GetRandom () override |
Compute a random value whose probability is defined by the distribution. More... | |
Member Function Documentation
◆ 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/ChRandom.h