Does not inherit
Prototypes | Header File(s) | |
double | variance(const RWMathVec<double>&) | <rw/math/mathvec.h> |
float | variance(const RWMathVec<float>&) | <rw/math/mathvec.h> |
double | variance(const RWMathVec<DComplex>&) | <rw/math/mathvec.h> |
double | variance(const RWGenMat<double>&) | <rw/math/genmat.h> |
float | variance(const RWGenMat<float>&) | <rw/math/genmat.h> |
double | variance(const RWGenMat<DComplex>&) | <rw/math/genmat.h> |
double | variance(const RWMathArray<double>&) | <rw/math/mtharray.h> |
float | variance(const RWMathArray<float>&) | <rw/math/mtharray.h> |
double | variance(const RWMathArray<DComplex>&) | <rw/math/mtharray.h> |
The function variance() takes a vector or matrix x as an argument and returns its variance y as in:
where <x> is the mean of the vector and N is the length of the vector or the number of rows times columns, in the case of a matrix. Note that this is the biased variance.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.