@leanchuck/core - v0.1.1
    Preparing search index...

    Function classifyPareto

    • Classifies a single cumulative share against the cutoff.

      Parameters

      • cumulativeShare: number

        Running share of the total on a 0–1 scale.

      • Optionaloptions: ParetoOptions

        Pareto options (only the cutoff is used here).

      Returns ParetoClass

      'vital' if at/below the cutoff, otherwise 'trivial'.

      classifyPareto(0.62);              // 'vital'
      classifyPareto(0.91); // 'trivial'
      classifyPareto(0.83, { buffer: 0.05 }); // 'vital' (cutoff 0.85)