clVector.RMS Method

function RMS: Double;

Standard deviation.

Returns: Double

Remarks:

Calculate the standard deviation of all calling object elements. The result is a real value. An exception is raised if calling vector TOpenCLBase.Complex property is true.

Examples
var a: clVector;
    c: double;
    aMean: double;
begin
    a.CopyFromArray(TDoubleArray.Create(1,2,3,4));
    Caption := FloatToSTr(a.RMS);
end;
See Also: clVector.Mean