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 Fri Sep 23 16:34:03 2011 for MityDSP Signal Processing by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.