VF_avdevV | VD_avdevV | VE_avdevV |
|
Function | average 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | avdevV = 1/size * sum( |Xi - Yi| )
The average of the absolute deviation of each element of X from the corresponding element of Y is calculated. |
|
|
Return value | average deviation. |
|
|