fitGroup

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

Fits every candidate family to the observations in the index range from startIndex until endIndex, returning those that succeeded and those that did not.

Implementations must not throw when an individual family fails to fit; a failure is an expected outcome to be reported, not an exceptional one.

Parameters

sortedData

the observations in non-decreasing order

startIndex

the inclusive start index of the group

endIndex

the exclusive end index of the group