Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_RANDOM_H_
2 #define SimTK_SimTKCOMMON_RANDOM_H_
179 #endif // SimTK_SimTKCOMMON_RANDOM_H_
void fillArray(Real array[], int length) const
Fill an array with values from the pseudo-random sequence.
void setSeed(int seed)
Reinitialize this random number generator with a new seed value.
Gaussian()
Create a new random number generator that produces values according to a Gaussian distribution with m...
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
Real getStdDev() const
Get the standard deviation of the Gaussian distribution.
ELEM min(const VectorBase< ELEM > &v)
Definition: VectorMath.h:178
Real getValue() const
Get the next value in the pseudo-random sequence.
ELEM mean(const VectorBase< ELEM > &v)
Definition: VectorMath.h:324
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
const RandomImpl & getConstImpl() const
Get a constant reference to the internal object which implements the random number generator.
void setMean(Real mean)
Set the mean of the Gaussian distribution.
Gaussian(Real mean, Real stddev)
Create a new random number generator that produces values according to a Gaussian distribution with t...
ELEM max(const VectorBase< ELEM > &v)
Definition: VectorMath.h:251
const GaussianImpl & getConstImpl() const
Random()
This constructor should never be invoked directly.
This class defines the interface for pseudo-random number generators.
Definition: Random.h:54
RandomImpl & getImpl()
Get the internal object which implements the random number generator.
RandomImpl * impl
Definition: Random.h:73
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606
This is a subclass of Random that generates numbers according to a Gaussian distribution with a speci...
Definition: Random.h:141
void setStdDev(Real stddev)
Set the standard deviation of the Gaussian distribution.
Real getMean() const
Get the mean of the Gaussian distribution.