The tcSigProcNoise class provides utility methods useful for generating noise vectors in the digital signal processor. The tcSigProcNoise class leverages the rand() function from the TI BIOS libraries.
This is a simple example of tcSigProcNoise usage:
{ float mean = 5.0; // desired mean of noise float std = 3.0; // desired standard deviation of noise float vector[500]; // the noise // seed using the clock time tcSigProcNoise::Seed(CLK_gethtime()); // generate the noise for (int index = 0; index < 500; index++) { vector[index] = tcSigProcNoise::Gaussian()*std+mean; } }