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;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_avdevC( float *h_RetVal, fVector d_X, ui size, float C );
int cusdVF_avdevC( float *d_RetVal, fVector d_X, ui size, float *d_C );
float VFcu_avdevC( fVector X, ui size, float C );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_avdevC( var h_RetVal:Single; d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_avdevC( d_RetVal:PSingle; d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_avdevC( h_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