Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function StdDev: double; overload; | Standard deviation. |
| └ indexed: function StdDev(Index,Len: integer): double; overload; | ||
| 2 | function StdDev(const AMean: TCplx): TCplx; overload; | Returns the standard deviation of all calling object complex elements. |
| └ indexed: function StdDev(const AMean: TCplx; Index, Len: integer): TCplx; overload; | ||
| 3 | function StdDev(const AMean: double): double; overload; | Returns the standard deviation of all calling object elements. |
| └ indexed: function StdDev(const AMean: double; Index, Len: integer): double; overload; |
Overload 1: function StdDev: double; overload;
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 TMtxVec.Complex property is true.
var a: Matrix;
c: double;
aMean: double;
begin
a := [[1,2],[3,4]];
aMean := a.Mean;
c := a.StdDev(aMean); //if both Mean and StdDev are required this is faster
// c := a.StdDev; //this is an alternative.
end;
Indexed: function StdDev(Index,Len: integer): double; overload;
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 TMtxVec.Complex property is true or if array borders are overrun/underrun.
Overload 2: function StdDev(const AMean: TCplx): TCplx; overload;
Returns the standard deviation of all calling object complex elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | TCplx | pre-computed mean |
Returns: TCplx (complex)
The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object TMtxVec.Complex property is false.
Indexed: function StdDev(const AMean: TCplx; Index, Len: integer): TCplx; overload;
Returns the standard deviation of calling object complex elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | TCplx | pre-computed mean |
| 2 | Index | integer | start index |
| 3 | Len | integer | element count |
Returns: TCplx (complex)
The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object TMtxVec.Complex property is false or if array borders are overrun/underrun.
Overload 3: function StdDev(const AMean: double): double; overload;
Returns the standard deviation of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | double | pre-computed mean |
Returns: double
The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object TMtxVec.Complex property is true.
Indexed: function StdDev(const AMean: double; Index, Len: integer): double; overload;
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | double | pre-computed mean |
| 2 | Index | integer | start index |
| 3 | Len | integer | element count |
Returns: double
The average of the coresponding elements must be passed as a parameter. An exception is raised if calling object TMtxVec.Complex property is true or if array borders are overrun/underrun.