VF_smooth  VD_smooth  VE_smooth 


Syntax C/C++  #include <VFstd.h>
void VF_smooth( fVector Y, fVector X, ui size, unsigned deg); 
C++ VecObj  #include <OptiVec.h>
void vector<T>::smooth( const vector<T>& X, unsigned deg ); 
Pascal/Delphi  uses VFstd;
procedure VF_smooth( Y,X:fVector; size:UIntSize; deg: UInt ); 

Description  A primitive, but very fast lowfrequency filtering of the vector X is performed. For each point, a weighted average of the point itself and its one or few nearest neighbours is calculated. The argument deg decides how many points are taken into accout. E.g., deg=3 means 3point smoothing by the formula:
Y_{i} = 0.25 * (2*X_{i} + X_{i1} + X_{i+1})
Higher degrees (5, 7, 9...) of smoothing are achieved internally by repeated 3point smoothing. deg = 0 or 1 means no smoothing at all; deg = 2 or 3 is interpreted as 3point smoothing, deg = 4 or 5 as 5point smoothing, and so on. 



