ComponentFitterIfc

Fits the catalog of candidate families to a contiguous group of sorted observations.

The interface is stated over an index range into the caller's sorted data rather than over a distribution type, so that a discrete implementation over probability mass functions can be added later without disturbing the partition, refinement, or search layers above it.

Inheritors

Functions

Link copied to clipboard
open fun fitAll(sortedData: DoubleArray, partition: DataPartition): List<GroupFitResult>

Fits every group of the supplied partition, in group order.

Link copied to clipboard
abstract fun fitGroup(sortedData: DoubleArray, startIndex: Int, endIndex: Int): GroupFitResult

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