VF_varianceCwWVD_varianceCwWVE_varianceCwW
Function"Variance with weights" of a one-dimensional distribution with respect to a pre-set value.
Syntax C/C++#include <VFstd.h>
float VF_varianceCwW( fVector X, fVector Wt, ui size, float C );
C++ VecObj#include <OptiVec.h>
T vector<T>::varianceCwW( const vector<T>& Wt, const T& C );
Pascal/Delphiuses VFstd;
function VF_varianceCwW( X, Wt:fVector; size:UIntSize; C:Single ): Single;
Descriptionvar = (1 / sum( Wti )) * sum( Wti * (Xi - C)2 )
The weights need not be normalized.
Error handlingnone
Return valuevariance of the distribution.
See alsoVF_meanwW,   VF_varianceC,   VF_varianceVwW,   VF_linregress

VectorLib Table of Contents  OptiVec home