Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function StdDev: Double; | Standard deviation. |
| └ indexed: function StdDev(Index: Integer; Len: Integer): Double; | ||
| 2 | function StdDev(ASum: Double; aSumSqr: Double): Double; | Returns the standard deviation of all calling object elements. |
| └ indexed: function StdDev(ASum: Double; aSumSqr: Double; Index: Integer; Len: Integer): Double; |
Overload 1: function StdDev: Double;
Standard deviation.
Returns: Double
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.
var a: clVector;
c: double;
aMean: double;
begin
a.CopyFromArray(TDoubleArray.Create(1,2,3,4));
Caption := FloatToSTr(a.StdDev);
end;
Indexed: function StdDev(Index: Integer; Len: Integer): Double;
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Returns: Double
An exception is raised if calling object TOpenCLBase.Complex property is true or if array borders are overrun/underrun.
Overload 2: function StdDev(ASum: Double; aSumSqr: Double): Double;
Returns the standard deviation of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ASum | Double | output sum |
| 2 | aSumSqr | Double | scalar |
Returns: Double
The sum and the sum of squares of all calling object elements must be passed as parameters. An exception is raised if calling object TOpenCLBase.Complex property is true.
Indexed: function StdDev(ASum: Double; aSumSqr: Double; Index: Integer; Len: Integer): Double;
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ASum | Double | output sum |
| 2 | aSumSqr | Double | scalar |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Returns: Double
The sum and the sum of squares of the coresponding elements must be passed as parameters. An exception is raised if calling object TOpenCLBase.Complex property is true or if array borders are overrun/underrun.