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/Delphiuses VFstd;
function VF_varianceVwW( X, Y, Wt:fVector; size:UIntSize ):
Descriptionvar = (1 / sum(Wti)) * sum( Wti * (Xi - Yi)2 )
The weights need not be normalized.
Error handlingnone
Return valueweighted variance
See alsoVF_meanwW,   VF_chi2,   VF_varianceV,   VF_varianceCwW,   VF_linregress

VectorLib Table of Contents  OptiVec home