TSparseMtx.RMS Method

Double RMS

Root mean squared of all non-zero elements.

Returns: Double

Examples
Matrix a = new Matrix();
a.SetIt(2, 2, false, new double[] { 1.0, 2.0, 3.0, 4.0 });
double result = a.RMS();
if (Math.Abs(result - 2.73861278752583) > 1e-10)
    throw new Exception("Matrix.RMS: expected 2.73861278752583, got " + result);
Matrix a;
double c;
a.SetIt(1,4,false,new double[] {1,2,3,4});
c = a.RMS;

Indexed: Double RMS(Int32 Index, Int32 Len)

Calculate the RMS for calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

Returns: Double

Remarks:

An exception is raised if array borders are overrun.