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

    Interface ParetoOptions

    Options controlling how the Pareto split is computed.

    interface ParetoOptions {
        threshold?: number;
        buffer?: number;
        alwaysIncludeTop?: boolean;
        precision?: number;
    }
    Index

    Properties

    threshold?: number

    The cumulative-share cutoff on a 0–1 scale. Contributors at or below this point are classified vital.

    0.8
    
    buffer?: number

    Extra slack added to ParetoOptions.threshold when classifying. Some methodologies take "the 80% plus one more" — e.g. use 0.005 buffer to make the effective cutoff 0.805. Defaults to no buffer for an exact split. Negative values shift the cutoff down.

    0
    
    alwaysIncludeTop?: boolean

    Always classify the single largest contributor as vital, even if it alone exceeds the cutoff. Prevents a dominant outlier from being labelled trivial.

    true
    
    precision?: number

    Decimal places used when rounding the stored cumulative share.

    4