clVector.SumAndSqrSum Method

void SumAndSqrSum(ref Double Sum, ref Double SqrSum)

Computes the sum and the sum of squared elements from the elements in the calling object.

#NameTypeDescription
1SumDouble (ref)output
2SqrSumDouble (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.

#NameTypeDescription
1SumDouble (ref)output
2SqrSumDouble (ref)output
3IndexInt32start index
4LenInt32element 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].