Index-> contents reference index search Up-> SPT_HELP Mathematical Functions colrms Prev Next SPT_HELP-> SPTFunctionsByCategory Mathematical Functions Data Manipulation Functions SignalGeneratorMain AnalogFilterFunctions FIR Filter Design Window Functions IIR Filter Design FourierFunctions Plotting Functions Histogram Functions Mathematical Functions-> colavg colmsq colrms db10 db20 even logn powerof2 OtherMathStat sinc colrms Headings-> Description Example

Column-wise Root-Mean-Square (RMS) of a Matrix
 Syntax `y = colrms(`x`)` Include: `include spt\colrms.oms` See Also
``` ARGUMENTS:      INPUTS:         x = MATRIX, any numerical type.    RETURN: VECTOR, column-wise rms value. ```
Description ``` ```Returns a row vector with the column-wise Root-Mean-Square value of input matrix. Each element of the returned vector is the square root of the average of the norm squared for the corresponding column of the input matrix. 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.

Example ``` ```For vectors: ``` O>x = {-1.0, 0, 1, 2, 3} O>x { -1 0 1 2 3 } O>colrms(x) 1.73205  ``` For matrices: ``` O>A = {[-5, 3.0],[0,4]} O>A { [ -5 , 3 ] [ 0 , 4 ] } O>colrms(A) [ 3.53553 , 3.53553 ]  ```