Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a uniform probability distribution of the templated type. More...
#include <omUniformDistribution.h>
Public Member Functions | |
UniformDistribution () | |
Create a uniform distribution on the interval [0,1]. More... | |
UniformDistribution (const Random< T > &newRandom) | |
Create a uniform distribution on the interval [0,1] with the specified random variable. More... | |
UniformDistribution (T min, T max) | |
Create a uniform distribution on the interval [ min, max ]. More... | |
UniformDistribution (T min, T max, const Random< T > &newRandom) | |
Create a uniform distribution on the interval [ min, max ] using the specified random variable. More... | |
T | sample () |
Generate a sample from the uniform distribution. More... | |
T | getMinimum () const |
Get the minimum value that the uniform distribution can generate. More... | |
void | setMinimum (T min) |
Set the minimum value that the uniform distribution can generate. More... | |
T | getMaximum () const |
Get the maximum value that the uniform distribution can generate. More... | |
void | setMaximum (T max) |
Set the maximum value that the uniform distribution can generate. More... | |
Random< T > & | getRandom () |
Get the random variable used to generate samples for this distribution. More... | |
const Random< T > & | getRandom () const |
Get the random variable used to generate samples for this distribution. More... | |
void | setRandom (const Random< T > &newRandom) |
Set the random variable used to generate samples for this distribution. More... | |
A class that represents a uniform probability distribution of the templated type.
|
inline |
Create a uniform distribution on the interval [0,1].
|
inline |
Create a uniform distribution on the interval [0,1] with the specified random variable.
The created uniform distribution will produce samples using the specified random variable.
|
inline |
Create a uniform distribution on the interval [ min, max ].
|
inline |
Create a uniform distribution on the interval [ min, max ] using the specified random variable.
The created uniform distribution will produce samples using the specified random variable.
|
inline |
Generate a sample from the uniform distribution.
|
inline |
Get the minimum value that the uniform distribution can generate.
|
inline |
Set the minimum value that the uniform distribution can generate.
|
inline |
Get the maximum value that the uniform distribution can generate.
|
inline |
Set the maximum value that the uniform distribution can generate.
|
inline |
Get the random variable used to generate samples for this distribution.
|
inline |
Get the random variable used to generate samples for this distribution.
|
inline |
Set the random variable used to generate samples for this distribution.