Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.40 mean()

PrototypesHeader File(s)
template <class T>
T
mean(const RWMathVec<T>&)
<rw/math/mathvec.h>
T
mean(const RWGenMat<T>&)
<rw/math/genmat.h>
T
mean(const RWMathArray<T>&)
<rw/math/mtharray.h>

10.40.1 Description

Takes a vector or matrix as an argument and returns <x>, the mean value, where:

For example, if x = [1, 4, 3, 4], then <x> = 3.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.