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

Compute running average.

Pascal
procedure RunningAverage(const Averaged: TVec; const Data: TVec; Count: integer; Decay: integer = 0); overload;

Compute running average of Data and place the result in Averaged. Count defines the Data block count already averaged and Decay defines exponential decay factor. If Decay is zero, the method will compute linear average. This can be usefull to save memory, if a very large amount of large Data blocks has to be averaged. If Decay is bigger then zero, then this routine is the vectorized version of the ExpAverageFilter routine.

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