VF_reldiffC | VD_reldiffC | VE_reldiffC |
|
Function | Relative Deviation (with correct sign) of the elements of a vector from a reference value |
|
Syntax C/C++ | #include <VFmath.h>
void VF_reldiffC( fVector Y, fVector X, ui size, float C ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::reldiffC( const vector<T>& X, const T& C ); |
Pascal/Delphi | uses VFmath;
procedure VF_reldiffC( Y, X:fVector; size:UIntSize; C:Single ); |
|
CUDA Function C/C++ | #include <cudaVFmath.h>
#include <cudaVDmath.h>
int cudaVF_reldiffC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_reldiffC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_reldiffC( fVector d_Y, fVector d_X, ui size, float C );
|
CUDA Function Pascal/Delphi | uses VFmath, VDmath;
function cudaVF_reldiffC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_reldiffC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VF_reldiffC( 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_reldiffC yields the signed relative diffiation (negative for Xi < C), the similar function VF_reldevC gives the absolute value of relative deviation. |
|
|
|
|