Navigation

Operators and Keywords

Function List:

C++ API

: meansq (x)
: meansq (x, dim)

Compute the mean square of the elements of the vector x.

The mean square is defined as

meansq (x) = 1/N SUM_i x(i)^2

For matrix arguments, return a row vector containing the mean square of each column.

If the optional argument dim is given, operate along this dimension.

See also: var, std, moment.

Package: octave