void SumAndSqrSum(ref Double Sum, ref Double SqrSum)
Computes the sum and the sum of squared elements from the elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Sum | Double (ref) | output |
| 2 | SqrSum | Double (ref) | output |
Result: stored in self (calling object)
Indexed: void SumAndSqrSum(ref Double Sum, ref Double SqrSum, Int32 Index, Int32 Len)
Returns the sum and the sum of squared elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Sum | Double (ref) | output |
| 2 | SqrSum | Double (ref) | output |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | 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].