#include <noisegenerator.h>
Inherited by ColorUniformNoise, SineWhiteNoise, WhiteNormalNoise, and WhiteUniformNoise.
Inheritance diagram for NoiseGenerator:
Public Member Functions | |
NoiseGenerator () | |
virtual | ~NoiseGenerator () |
virtual void | init (unsigned int dimension) |
initialization with the the given dimension for multidimensional noise | |
virtual double | generate (double min, double max)=0 |
generate somehow distributed random number parameterized with min and max. | |
virtual void | add (double *value, double p1, double p2) |
adds multidimensional noise to the value field. | |
Protected Member Functions | |
double | uniform (double min=-0.1, double max=0.1) |
Protected Attributes | |
unsigned int | dimension |
It is suitable for single noise channels but also multidimensional noise.
|
|
|
|
|
adds multidimensional noise to the value field. Generic implementation calls generate for each channel. Overload this if you need different behavior.
Reimplemented in ColorUniformNoise, ColorNormalNoise, and SineWhiteNoise.
|
|
generate somehow distributed random number parameterized with min and max. valid only for ONE random number, use add() for adding this kind of noise to several channels Implemented in WhiteUniformNoise, WhiteNormalNoise, ColorUniformNoise, ColorNormalNoise, and SineWhiteNoise.
|
|
initialization with the the given dimension for multidimensional noise
Reimplemented in ColorUniformNoise, and ColorNormalNoise.
|
|
|
|
|