fitGroup

open override fun fitGroup(sortedData: DoubleArray, startIndex: Int, endIndex: Int): GroupFitResult(source)

Fits the component for a group, estimating from the group's window.

The returned result carries the group's range, not the window's. Nothing downstream reads those fields today, but the result is the fit for that group, and reporting the window there would misdescribe it for any code that later does read them.

Parameters

sortedData

the observations in non-decreasing order

startIndex

the group's first index, inclusive

endIndex

the group's last index, exclusive