MityDSP Documentation Index
tcSigProcNoise

Introduction

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.

See also:
MityDSP::tcSigProcNoise Class Reference

Example

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;
}
}

  
Generated on Mon Apr 22 2013 11:33:40 for MityDSP Signal Processing by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.