refine
open override fun refine(sortedData: DoubleArray, initial: DataPartition, certificate: AdmissibilityCertificate, fitter: ComponentFitterIfc): RefinementResult(source)
Refines the supplied partition.
Implementations must return a partition satisfying the certificate. When they cannot improve on the initial partition they must return it unchanged rather than something worse, so that a refiner can never make a result worse than not using it.
Parameters
sorted Data
the observations in non-decreasing order
initial
the partition to improve
certificate
the structural constraints any partition must satisfy
fitter
the component fitter used to evaluate a partition