procedure MeanAndStdDev(var aMean: Double; var AStdDev: Double);
Returns the standard deviation of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aMean | Double | |
| 2 | AStdDev | Double | output std deviation |
Result: stored in self (calling object)
Remarks:
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: procedure MeanAndStdDev(var aMean: Double; var AStdDev: Double; Index: Integer; Len: Integer);
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aMean | Double | |
| 2 | AStdDev | Double | output std deviation |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Result: stored in self (calling object)
Remarks:
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.