function RMS: double; overload;
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;
Indexed: function RMS(Index,Len: integer): double; overload;
Returns the root-mean-square of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | integer | start index |
| 2 | Len | integer | element count |
Returns: double
Remarks:
An exception is raised if calling object TOpenCLBase.Complex property is true or if array borders are overrun/underrun.