csl::Noise Class Reference

#include <Noise.h>

Inheritance diagram for csl::Noise:

csl::UnitGenerator csl::Scalable csl::PinkNoise csl::WhiteNoise List of all members.

Detailed Description

Abstract Noise class - inherits from UnitGenerator & Scalable, and provides constructors and basic pseudo-raondom methods


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 seed integer for the pseudo-random number generators.
float mDivisor
 factor to scale ints to +/- 1.0


Constructor & Destructor Documentation

Noise::Noise  ) 
 

Constructors.

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

Noise::Noise double  ampl,
double  offset = 0.0
 

Noise::Noise int  seed,
double  ampl = 1.0,
double  offset = 0.0
 

csl::Noise::~Noise  )  [inline]
 


Member Function Documentation

int csl::Noise::generateRandomNumber  )  [inline]
 

returns the next pseudo-random number

float csl::Noise::generateNormalizedRandomNumber  )  [inline]
 

returns next pseudo-random normalised to +/- 1.0

void csl::Noise::setSeed int  seed  )  [inline]
 

set the seed integer for the pseudo-random number generators

void Noise::dump  ) 
 

Tell me more about what is happening.


Member Data Documentation

int csl::Noise::mSeed [protected]
 

Destructor seed integer for the pseudo-random number generators.

float csl::Noise::mDivisor [protected]
 

factor to scale ints to +/- 1.0


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:20 2007 for CSL by  doxygen 1.4.5-20051010