A class that generates a normal (gaussian) probability distribution for 32-bit floats.
More...
|
| NormalDistribution () |
| Create a standard normal distribution with mean of 0 and standard deviation 1. More...
|
|
| NormalDistribution (const Random< float > &newRandom) |
| Create a standard normal distribution with mean of 0 and standard deviation 1. More...
|
|
| NormalDistribution (float newMean, float newStandardDeviation) |
| Create a normal distribution with the specified mean and standard deviation. More...
|
|
| NormalDistribution (float newMean, float newStandardDeviation, const Random< float > &newRandom) |
| Create a normal distribution with the specified mean and standard deviation. More...
|
|
float | sample () |
| Generate a sample from the normal distribution. More...
|
|
float | getMean () const |
| Get the mean of the normal distribution. More...
|
|
void | setMean (float newMean) |
| Set the mean of the normal distribution. More...
|
|
float | getStandardDeviation () const |
| Get the standard deviation of the normal distribution. More...
|
|
void | setStandardDeviation (float newStandardDeviation) |
| Set the standard deviation of the normal distribution. More...
|
|
Random< float > & | getRandom () |
| Get the random variable used to generate samples for this distribution. More...
|
|
const Random< float > & | getRandom () const |
| Get the random variable used to generate samples for this distribution. More...
|
|
void | setRandom (const Random< float > &newRandom) |
| Set the random variable used to generate samples for this distribution. More...
|
|
template<>
class om::math::NormalDistribution< float >
A class that generates a normal (gaussian) probability distribution for 32-bit floats.