![]() |
Om
1.0.0
A universal framework for multimedia simulation
|
A class that generates an exponential probability distribution for 32-bit floats. More...
#include <omExponentialDistribution.h>
Public Member Functions | |
| ExponentialDistribution () | |
| Create an exponential distribution with lambda equal to 1. More... | |
| ExponentialDistribution (const Random< float > &newRandom) | |
| Create an exponential distribution with lambda equal to 1. More... | |
| ExponentialDistribution (float newLambda) | |
| Create an exponential distribution with lambda equal to the specified value. More... | |
| ExponentialDistribution (float newLambda, const Random< float > &newRandom) | |
| Create an exponential distribution with lambda equal to the specified value. More... | |
| float | sample () |
| Generate a sample from the exponential distribution. More... | |
| float | getLambda () const |
| Get the lambda parameter of this exponential distribution. More... | |
| void | setLambda (float newLambda) |
| Set the lambda parameter of this exponential 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 | getRandom (const Random< float > &newRandom) |
| Set the random variable used to generate samples for this distribution. More... | |
A class that generates an exponential probability distribution for 32-bit floats.
|
inline |
Create an exponential distribution with lambda equal to 1.
|
inline |
Create an exponential distribution with lambda equal to 1.
The created exponential distribution will produce samples using the specified random variable.
|
inline |
Create an exponential distribution with lambda equal to the specified value.
|
inline |
Create an exponential distribution with lambda equal to the specified value.
The created exponential distribution will produce samples using the specified random variable.
|
inline |
Generate a sample from the exponential distribution.
|
inline |
Get the lambda parameter of this exponential distribution.
|
inline |
Set the lambda parameter of this exponential distribution.
|
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.
1.8.11