VF_reldiffV | VD_reldiffV | VE_reldiffV |
|
Function | Relative Deviation (with correct sign) of the elements of one vector from the corresponding elements of another vector, normalized by the larger of the two input values |
|
Syntax C/C++ | #include <VFmath.h>
void VF_reldiffV( fVector Z, fVector X, fVector Y, ui size ); |
C++ VecObj | #include <OptiVec.h>
void vector<T>::reldiffV( const vector<T>& X, const vector<T>& Y ); |
Pascal/Delphi | uses VFmath;
procedure VF_reldiffV( Z, X, Y:fVector; size:UIntSize ); |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_reldiffV( fVector d_Z, fVector d_X, fVector d_Y,ui size );
void VFcu_reldiffV( fVector h_Z, fVector h_X, fVector h_Y,ui size );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_reldiffV( d_Z, d_X, d_Y:fVector; size:UIntSize ): IntBool;
procedure VFcu_reldiffV( h_Z, h_X, h_Y:fVector; size:UIntSize );
|
|
Description | Zi = (Xi − Yi) / max(|Xi|, |Yi|), if |Xi| > 0 or |Yi| > 0
Zi = 0, if Xi = 0 and Yi = 0
While VF_reldiffV yields the signed relative diffiation (negative for Xi < Yi, the similar function VF_reldevV gives the absolute value of the relative deviation. |
|
|
|
|