pamoja for TypeScript - v0.1.17
    Preparing search index...

    Class Smoother

    Smooths a noisy reading by weighting each new sample against the running value.

    Index
    • Creates a smoother whose weight sets how much each new sample counts.

      Parameters

      • weight: number

      Returns Smoother

    • Clears the smoother back to its initial state.

      Returns void

    • Folds a sample in and returns the smoothed value.

      Parameters

      • sample: number

      Returns number

    • Returns the current value, or null before the first sample.

      Returns number | null