classify

fun classify(criterionName: String, comparableValues: Map<Int, Double>, countsFitted: Collection<Int>, smallerIsBetter: Boolean): CriterionChoice(source)

Classifies a criterion's preference from its values.

Parameters

criterionName

the criterion's name

comparableValues

the criterion's value at each count where it was comparable

countsFitted

every count a candidate was fitted for, which sets the range

smallerIsBetter

the criterion's direction