You are here: Symbol Reference > SignalUtils Namespace > Functions > SignalUtils.ColoredNoiseFIR Function
DSP Master VCL
ContentsIndex
PreviousUpNext
SignalUtils.ColoredNoiseFIR Function

Computes FIR filter with desired noise/signal coloring response.

Pascal
procedure ColoredNoiseFIR(const H: TVec; const dBPerDecade: double; const StartBW: double; const FS: double);

Parameter dBPerDecade specifies the filters response in terms of decibels per decade roll-off or roll-up. The parameter can be positive or negative. When euqal to 10, the FIR filter generated will have pink (noise) response. When equal to 20 it will generate brown(ian) (noise) response. Paramter FS specifies the sampling frequency and StartBW the location of the "knee" of the filter at which the linear dB/decade response begins. StartBW may not be too close to 0. The closer the value is to zero the longer will be the filter. Longer filter means longer delay and slower computation times. To produce for example pink noise first generate random noise and then filter the noise with the filter response H: 

x.RandGauss(); FirFilter(x, H); 

The desired precision will be picked from H.FloatPrecision

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!