procedure SumAndSqrSum(out Sum, SqrSum: double); overload;
Computes the sum and the sum of squared elements from the elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Sum | double | scalar |
| 2 | SqrSum | double | scalar |
Result: stored in self (calling object)
Indexed: procedure SumAndSqrSum(out Sum, SqrSum: double; Index, Len: integer); overload;
Returns the sum and the sum of squared elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Sum | double | scalar |
| 2 | SqrSum | double | scalar |
| 3 | Index | integer | start index |
| 4 | Len | integer | element count |
Result: stored in self (calling object)
Remarks:
Returns the sum and the sum of squared items from calling vector elements [Index]..[Index+Len-1].