FunctionMean of the absolute values of a one-dimensional distribution
Syntax C/C++#include <VFstd.h>
float VF_meanabs( fVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::meanabs();
Pascal/Delphiuses VFstd;
function VF_meanabs( X:fVector; size: UIntSize ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_meanabs( float *h_RetVal, fVector d_X, ui size );
int cusdVF_meanabs( float *d_RetVal, fVector d_X, ui size );
float VFcu_meanabs( fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_meanabs( var h_RetVal:Single; d_X:fVector; size:UIntSize ): IntBool;
function cusdVF_meanabs( d_RetVal:PSingle; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_meanabs( h_X:fVector; size:UIntSize ): Single;
Descriptionmeanabs = (1 / size) * sum(| Xi |)
Error handlingnone
Return valueMean of the absolute values of all vector elements
See alsoVF_mean,   VF_sumabs

VectorLib Table of Contents  OptiVec home