| Prev | Next | colmsq |
| Syntax |
y = colmsq(x) |
| Include: |
include spt\colmsq.oms |
| See Also |
ARGUMENTS:
INPUTS:
x = MATRIX, any numerical type.
RETURN: VECTOR, column-wise mean-square value.
Returns a row vector with the column-wise Mean-Square
(msq) value of input matrix. Each element of the returned
vector is the average of the norm squared of the
corresponding column. Output is of same type as input except
for INTEGER input which is coerced to DOUBLE before
processing. COMPLEX inputs are converted to their ABSOLUTE
value before being averaged; type DOUBLE is returned.
For vectors:
O>x = {1,2,3,4,5}
O>x
{
1
2
3
4
5
}
O>colmsq(x)
11
For matrices:
O>A = {[1,2,3],[4,5,6]}
O>A
{
[ 1 , 2 , 3 ]
[ 4 , 5 , 6 ]
}
O>colmsq(A)
[ 8.5 , 14.5 , 22.5 ]