VF_varianceC | VD_varianceC | VE_varianceC |
|
Function | Variance 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | var = (1 / size) * sum( (Xi - C)2 ) |
|
|
Return value | The variance is returned. |
|
|