MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Random.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace MayaFlux {
4
5//-------------------------------------------------------------------------
6// Random Number Generation
7//-------------------------------------------------------------------------
8
9/**
10 * @brief Generates a uniform random number
11 * @param start Lower bound (inclusive)
12 * @param end Upper bound (exclusive)
13 * @return Random number with uniform distribution
14 *
15 * Uses the random number generator from the default engine.
16 */
17MAYAFLUX_API double get_uniform_random(double start = 0, double end = 1);
18
19/**
20 * @brief Generates a gaussian (normal) random number
21 * @param start Lower bound for scaling
22 * @param end Upper bound for scaling
23 * @return Random number with gaussian distribution
24 *
25 * Uses the random number generator from the default engine.
26 */
27MAYAFLUX_API double get_gaussian_random(double start = 0, double end = 1);
28
29/**
30 * @brief Generates an exponential random number
31 * @param start Lower bound for scaling
32 * @param end Upper bound for scaling
33 * @return Random number with exponential distribution
34 *
35 * Uses the random number generator from the default engine.
36 */
37MAYAFLUX_API double get_exponential_random(double start = 0, double end = 1);
38
39/**
40 * @brief Generates a poisson random number
41 * @param start Lower bound for scaling
42 * @param end Upper bound for scaling
43 * @return Random number with poisson distribution
44 *
45 * Uses the random number generator from the default engine.
46 */
47MAYAFLUX_API double get_poisson_random(double start = 0, double end = 1);
48
49}
double get_gaussian_random(double start, double end)
Generates a gaussian (normal) random number.
Definition Random.cpp:19
double get_poisson_random(double start, double end)
Generates a poisson random number.
Definition Random.cpp:31
double get_uniform_random(double start, double end)
Generates a uniform random number.
Definition Random.cpp:13
double get_exponential_random(double start, double end)
Generates an exponential random number.
Definition Random.cpp:25
Main namespace for the Maya Flux audio engine.
Definition LiveAid.hpp:6