Simbody  3.6
SimTK::Random::Gaussian Class Reference

This is a subclass of Random that generates numbers according to a Gaussian distribution with a specified mean and standard deviation. More...

+ Inheritance diagram for SimTK::Random::Gaussian:

Public Member Functions

 Gaussian ()
 Create a new random number generator that produces values according to a Gaussian distribution with mean 0 and standard deviation 1. More...
 
 Gaussian (Real mean, Real stddev)
 Create a new random number generator that produces values according to a Gaussian distribution with the specified mean and standard deviation. More...
 
Real getMean () const
 Get the mean of the Gaussian distribution. More...
 
void setMean (Real mean)
 Set the mean of the Gaussian distribution. More...
 
Real getStdDev () const
 Get the standard deviation of the Gaussian distribution. More...
 
void setStdDev (Real stddev)
 Set the standard deviation of the Gaussian distribution. More...
 
- Public Member Functions inherited from SimTK::Random
 ~Random ()
 
void setSeed (int seed)
 Reinitialize this random number generator with a new seed value. More...
 
Real getValue () const
 Get the next value in the pseudo-random sequence. More...
 
void fillArray (Real array[], int length) const
 Fill an array with values from the pseudo-random sequence. More...
 

Protected Member Functions

GaussianImpl & getImpl ()
 
const GaussianImpl & getConstImpl () const
 
- Protected Member Functions inherited from SimTK::Random
 Random ()
 This constructor should never be invoked directly. More...
 
RandomImpl & getImpl ()
 Get the internal object which implements the random number generator. More...
 
const RandomImpl & getConstImpl () const
 Get a constant reference to the internal object which implements the random number generator. More...
 

Additional Inherited Members

- Protected Attributes inherited from SimTK::Random
RandomImpl * impl
 

Detailed Description

This is a subclass of Random that generates numbers according to a Gaussian distribution with a specified mean and standard deviation.

Constructor & Destructor Documentation

◆ Gaussian() [1/2]

Create a new random number generator that produces values according to a Gaussian distribution with mean 0 and standard deviation 1.

◆ Gaussian() [2/2]

Create a new random number generator that produces values according to a Gaussian distribution with the specified mean and standard deviation.

Member Function Documentation

◆ getMean()

Real SimTK::Random::Gaussian::getMean ( ) const

Get the mean of the Gaussian distribution.

◆ setMean()

void SimTK::Random::Gaussian::setMean ( Real  mean)

Set the mean of the Gaussian distribution.

◆ getStdDev()

Real SimTK::Random::Gaussian::getStdDev ( ) const

Get the standard deviation of the Gaussian distribution.

◆ setStdDev()

void SimTK::Random::Gaussian::setStdDev ( Real  stddev)

Set the standard deviation of the Gaussian distribution.

◆ getImpl()

GaussianImpl& SimTK::Random::Gaussian::getImpl ( )
protected

◆ getConstImpl()

const GaussianImpl& SimTK::Random::Gaussian::getConstImpl ( ) const
protected

The documentation for this class was generated from the following file: