VF_avdevC | VD_avdevC | VE_avdevC |
|
Function | average 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | avdevC = 1/size * sum( |Xi - C| )
The average of the absolute deviation of each element of X from C is calculated and returned. |
|
|
Return value | average deviation. |
|
|