Double SumOfSquares
Calculate the Sum of squares of the calling vector.
Returns: Double
Remarks:
For complex numbers, the routine computes the squared L2 norm.
SumOfSquares = Sum(|a[i]|^2) , 0 < i < Length-1.
Indexed: Double SumOfSquares(Int32 Index, Int32 Len)
Calculates the sum of squares from the calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element count |
Returns: Double