generate
open override fun generate(sortedData: DoubleArray, numGroups: Int, certificate: AdmissibilityCertificate): DataPartition?(source)
Generates a partition of the supplied sorted data into the requested number of groups, or returns null when no partition satisfying the certificate can be produced.
Parameters
sorted Data
the observations in non-decreasing order
num Groups
the requested number of groups, must be positive
certificate
the structural constraints the partition must satisfy; its number of observations must match the size of the supplied data