Brownian noise. More...
#include <Noise.h>
Public Member Functions | |
| NoiseBrown (float val=0, float step=0.04, float min=-1, float max=1, uint32_t seed=0) | |
| float | operator() () |
| Generate next value. | |
| void | seed (uint32_t v) |
| Set seed value of RNG. | |
Brownian noise.
Brownian noise has a power spectrum of 1/f^2. It is produced by integrating white (uniform) noise. The output value is clipped within a specified interval.
| NoiseBrown | ( | float | val = 0, |
| float | step = 0.04, |
||
| float | min = -1, |
||
| float | max = 1, |
||
| uint32_t | seed = 0 |
||
| ) |
| [in] | val | start value |
| [in] | step | accumulation step factor |
| [in] | min | minimum of clipping interval |
| [in] | max | maximum of clipping interval |
| [in] | seed | random number generator seed; 0 generates a random seed |