procedure SumAndSqrSum(out Sum: Double; out SqrSum: Double);
Computes the sum and the sum of squared elements from the elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Sum | Double | |
| 2 | SqrSum | Double |
Result: stored in self (calling object)
Indexed: procedure SumAndSqrSum(out Sum: Double; out SqrSum: Double; Index: Integer; Len: Integer);
Returns the sum and the sum of squared elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Sum | Double | |
| 2 | SqrSum | Double | |
| 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].