fit Group
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
sorted Data
the observations in non-decreasing order
start Index
the group's first index, inclusive
end Index
the group's last index, exclusive