VF_avdevVVD_avdevVVE_avdevV
Functionaverage deviation of the elements of one vector from the corresponding elements of another vector.
Syntax C/C++#include <VFstd.h>
float VF_avdevV( fVector X, fVector Y, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::avdevV( const vector<T>& Y );
Pascal/Delphiuses VFstd;
function VF_avdevV( X, Y:fVector; size:UIntSize ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_avdevV( float *h_RetVal, fVector X, fVector Y, ui size );
int cusdVF_avdevV( float *d_RetVal, fVector X, fVector Y, ui size );
float VFcu_avdevV( fVector h_X, fVector h_Y, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_avdevV( var h_RetVal:Single; d_X, d_Y:fVector; size:UIntSize ): IntBool;
function cusdVF_avdevV( d_RetVal:PSingle; d_X, d_Y:fVector; size:UIntSize ): IntBool;
function VFcu_avdevC( h_X, h_Y:fVector; size:UIntSize ): Single;
DescriptionavdevV = 1/size * sum( |Xi - Yi| )
The average of the absolute deviation of each element of X from the corresponding element of Y is calculated.
Error handlingnone
Return valueaverage deviation.
See alsoVF_ssq,   VF_ssqdevV,   VF_avdevC,   VF_sumdevV,   VF_chiabs

VectorLib Table of Contents  OptiVec home