Go to the documentation of this file. 1 #ifndef SimTK_SimTKCOMMON_RANDOM_H_
2 #define SimTK_SimTKCOMMON_RANDOM_H_
63 void setSeed(
int seed);
67 Real getValue()
const;
71 void fillArray(
Real array[],
int length)
const;
81 RandomImpl& getImpl();
85 const RandomImpl& getConstImpl()
const;
128 UniformImpl& getImpl();
129 const UniformImpl& getConstImpl()
const;
155 Real getMean()
const;
163 Real getStdDev()
const;
167 void setStdDev(
Real stddev);
169 GaussianImpl& getImpl();
170 const GaussianImpl& getConstImpl()
const;
179 #endif // SimTK_SimTKCOMMON_RANDOM_H_
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
ELEM min(const VectorBase< ELEM > &v)
Definition: VectorMath.h:178
ELEM mean(const VectorBase< ELEM > &v)
Definition: VectorMath.h:324
#define SimTK_SimTKCOMMON_EXPORT
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:224
ELEM max(const VectorBase< ELEM > &v)
Definition: VectorMath.h:251
This class defines the interface for pseudo-random number generators.
Definition: Random.h:54
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