sumOfSquares

fun sumOfSquares(start: Int, end: Int): Double(source)

The sum of squared deviations from the mean of the observations in the index range from start until end, computed in constant time from prefix sums. An empty range has zero sum of squares.

Parameters

start

the inclusive start index

end

the exclusive end index