You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > RMS Method > TMtxVec.RMS Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.RMS Method ()

Root mean square (RMS).

Pascal
function RMS: double; overload;

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

 

 

var a: TVec; c: double; begin CreateIt(a); try a.SetIt(False,[1,2,3,4]); c := a.RMS; finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!