Skip to content

quantileBreaks

quantileBreaks(sorted, classes): number[]

Defined in: packages/core/src/classify/breaks.ts:158

Quantile thresholds: each class holds (as near as ties allow) the same number of features. The threshold for class i is the value at sorted position ⌊i·n/k⌋, so — with step’s lower-inclusive edges — class 0 holds exactly the first ⌊n/k⌋ values when there are no ties.

ParameterType
sortedreadonly number[]
classesnumber

number[]