Prototypes | Header 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> |
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.