Functionaverage deviation from a preset value
Syntax C/C++#include <VFstd.h>
float VF_avdevC( fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
T vector<T>::avdevC( const T& C );
Pascal/Delphiuses VFstd;
function VF_avdevC( X:fVector; size:UIntSize; C:Single ): Single;
DescriptionavdevC = 1/size * sum( |Xi - C| )
The average of the absolute deviation of each element of X from C is calculated and returned.
Error handlingnone
Return valueaverage deviation.
See alsoVF_ssq,   VF_ssqdevC,   VF_avdevV,   VF_sumdevC,   VF_chiabs

VectorLib Table of Contents  OptiVec home