VF_reldevC | VD_reldevC | VE_reldevC |
|
Function | Relative Deviation (in absolute terms) of the elements of a vector from a reference value |
|
Syntax C/C++ | #include <VFmath.h>
void VF_reldevC( fVector Y, fVector X, ui size, float C ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::reldevC( const vector<T>& X, const T& C ); |
Pascal/Delphi | uses VFmath;
procedure VF_reldevC( Y, X:fVector; size:UIntSize; C:Single ); |
|
CUDA Function C/C++ | #include <cudaVFmath.h>
#include <cudaVDmath.h>
int cudaVF_reldevC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_reldevC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_reldevC( fVector d_Y, fVector d_X, ui size, float C );
|
CUDA Function Pascal/Delphi | uses VFmath, VDmath;
function cudaVF_reldevC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_reldevC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VF_reldevC( Y, X:fVector; size:UIntSize; C:Single );
|
|
Description | Yi = |Xi − C| / |C|
The reference value C=0 is not allowed, as it would lead to a division by zero.
While VF_reldevC yields the absolute value of the relative deviation, the similar function VF_reldiffC gives the relative deviation with ±sign. |
|
|
|
|