TVec::RMS Method

Overload List

#SignatureDescription
1double RMS();Root mean square (RMS).
2double RMS(int Index, int Len);Calculate the RMS for calling object elements [Index]..[Index+Len-1] in-place.

Overload 1: double RMS();

Root mean square (RMS).

Remarks:

Calculate the root mean square value for all calling object elements in-place. The root mean square (RMS) is defined by the equation:

RMS=1Length1k=0Length1V[k]2\text{RMS}=\sqrt{\frac{1}{\text{Length}-1}\sum _{k=0} ^{\text{Length}-1} V[k] ^2 }
See Also: TVec::StdDev
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: double RMS(int Index, int Len);

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

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if array borders are overrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler