chrono::ChMinMaxDistribution Class Reference

Description

Class for a distribution with uniform probability between a lower 'min' value and upper 'max' value (that is, the distribution looks like a rectangle)

#include <ChDistribution.h>

Inheritance diagram for chrono::ChMinMaxDistribution:
Collaboration diagram for chrono::ChMinMaxDistribution:

Public Member Functions

 ChMinMaxDistribution (double mmin, double mmax)
 
virtual double GetRandom ()
 Compute a random value whose probability is defined by the distribution, that is a value between min and max. More...
 
- Public Member Functions inherited from chrono::ChDistribution
virtual ~ChDistribution ()
 Default destructor for distribution object.
 

Member Function Documentation

virtual double chrono::ChMinMaxDistribution::GetRandom ( )
virtual

Compute a random value whose probability is defined by the distribution, that is a value between min and max.

Implements chrono::ChDistribution.