All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
gazebo::math::Rand Class Reference

Random number generator class. More...

#include <Rand.hh>

Static Public Member Functions

static double GetDblNormal (double _mean=0, double _sigma=1)
 Get a double from a normal distribution.
 
static double GetDblUniform (double _min=0, double _max=1)
 Get a double from a uniform distribution.
 
static int GetIntNormal (int _mean, int _sigma)
 Get a double from a normal distribution.
 
static int GetIntUniform (int _min, int _max)
 Get a integer from a uniform distribution.
 

Detailed Description

Random number generator class.

Member Function Documentation

static double gazebo::math::Rand::GetDblNormal ( double  _mean = 0,
double  _sigma = 1 
)
static

Get a double from a normal distribution.

Parameters
[in]_meanMean value for the distribution
[in]_sigmaSigma value for the distribution
static double gazebo::math::Rand::GetDblUniform ( double  _min = 0,
double  _max = 1 
)
static

Get a double from a uniform distribution.

Parameters
[in]_minMinimum bound for the random number
[in]_maxMaximum bound for the random number
static int gazebo::math::Rand::GetIntNormal ( int  _mean,
int  _sigma 
)
static

Get a double from a normal distribution.

Parameters
[in]_meanMean value for the distribution
[in]_sigmaSigma value for the distribution
static int gazebo::math::Rand::GetIntUniform ( int  _min,
int  _max 
)
static

Get a integer from a uniform distribution.

Parameters
[in]_minMinimum bound for the random number
[in]_maxMaximum bound for the random number

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