VF_varianceVwW | VD_varianceVwW | VE_varianceVwW |
|
Function | "Variance with weights" between two one-dimensional distributions. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_varianceVwW( fVector X, fVector Y, fVector Wt, ui size ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::varianceVwW( const vector<T>& Y, const vector<T>& Wt ); |
Pascal/Delphi | uses VFstd;
function VF_varianceVwW( X, Y, Wt:fVector; size:UIntSize ): |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_varianceVwW( float *h_RetVal, fVector X, fVector Y, fVector d_Wt, ui size );
int cusdVF_varianceVwW( float *d_RetVal, fVector X, fVector Y, fVector d_Wt, ui size );
float VFcu_varianceVwW( fVector h_X, fVector h_Y, fVector h_Wt, ui size );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_varianceVwW( var h_RetVal:Single; d_X, d_Y, d_Wt:fVector; size:UIntSize ): IntBool;
function cusdVF_varianceVwW( d_RetVal:PSingle; d_X, d_Y, d_Wt:fVector; size:UIntSize ): IntBool;
function VFcu_varianceVwW( h_X, h_Y, h_Wt:fVector; size:UIntSize ): Single;
|
|
Description | var = (1 / sum(Wti)) * sum( Wti * (Xi - Yi)2 )
The weights need not be normalized. |
|
|
Return value | weighted variance |
|
|