MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_poisson_random()

MAYAFLUX_API double MayaFlux::get_poisson_random ( double  start = 0,
double  end = 1 
)

Generates a poisson random number.

Parameters
startLower bound for scaling
endUpper bound for scaling
Returns
Random number with poisson distribution

Uses the random number generator from the default engine.

Definition at line 33 of file API/Random.cpp.

34{
35 auto& engine = get_random_engine();
36 engine.set_algorithm(Kinesis::Stochastic::Algorithm::POISSON);
37 return engine(start, end);
38}
Kinesis::Stochastic::Stochastic & get_random_engine()
Get reference to the default random engine.
Definition API/Random.cpp:9

References get_random_engine(), and MayaFlux::Kinesis::Stochastic::POISSON.

+ Here is the call graph for this function: