#include <Noise.h>

Public Member Functions | |
| int | generateRandomNumber () |
| returns the next pseudo-random number | |
| float | generateNormalizedRandomNumber () |
| returns next pseudo-random normalised to +/- 1.0 | |
| void | setSeed (int seed) |
| set the seed integer for the pseudo-random number generators | |
| void | dump () |
| Tell me more about what is happening. | |
| Noise () | |
| Constructors. | |
| Noise (double ampl, double offset=0.0) | |
| Noise (int seed, double ampl=1.0, double offset=0.0) | |
| ~Noise () | |
Protected Attributes | |
| int | mSeed |
| Destructor. | |
| float | mDivisor |
| factor to scale ints to +/- 1.0 | |
| Noise::Noise | ( | ) |
Constructors.
Abstract Noise class Constructors call UnitGenerator & Scalable constructors Noise defaults to expansion copy policy (i.e. distinct noise per channel) if no seed is specified, current clock time is used
References csl::kExpand, and csl::UnitGenerator::setCopyPolicy().
| Noise::Noise | ( | double | ampl, | |
| double | offset = 0.0 | |||
| ) |
References csl::kExpand, and csl::UnitGenerator::setCopyPolicy().
| Noise::Noise | ( | int | seed, | |
| double | ampl = 1.0, |
|||
| double | offset = 0.0 | |||
| ) |
References csl::kExpand, and csl::UnitGenerator::setCopyPolicy().
| csl::Noise::~Noise | ( | ) | [inline] |
| int csl::Noise::generateRandomNumber | ( | ) | [inline] |
| float csl::Noise::generateNormalizedRandomNumber | ( | ) | [inline] |
| void csl::Noise::setSeed | ( | int | seed | ) | [inline] |
| void Noise::dump | ( | void | ) | [virtual] |
Tell me more about what is happening.
Reimplemented from csl::UnitGenerator.
References csl::logMsg().
int csl::Noise::mSeed [protected] |
Destructor.
seed integer for the pseudo-random number generators
Referenced by generateNormalizedRandomNumber(), generateRandomNumber(), and setSeed().
float csl::Noise::mDivisor [protected] |
factor to scale ints to +/- 1.0
1.5.8