FunctionVariance of a one-dimensional distribution with respect to a pre-set value
Syntax C/C++#include <VFstd.h>
float VF_varianceC( fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
T vector<T>::varianceC( const T& C );
Pascal/Delphiuses VFstd;
function VF_varianceC( X:fVector; size:UIntSize; C:Single ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_varianceC( float *h_RetVal, fVector d_X, ui size, float C );
int cusdVF_varianceC( float *d_RetVal, fVector d_X, ui size, float *d_C );
float VFcu_varianceC( fVector h_X, ui size, float C );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_varianceC( var h_RetVal:Single; d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_varianceC( d_RetVal:PSingle; d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_varianceC( h_X:fVector; size:UIntSize; C:Single ): Single;
Descriptionvar = (1 / size) * sum( (Xi - C)2 )
Error handlingnone
Return valueThe variance is returned.
See alsoVF_mean,   VF_varianceV,   VF_ssq,   VF_ssqdevC,   VF_linregress

VectorLib Table of Contents  OptiVec home