Class Adder

An add operation accumulator that significantly reduces the numerical error in the total obtained by adding a sequence of finite-precision floating-point numbers.

See

Kahan summation algorithm on Wikipedia

Hierarchy

  • Adder

Constructors

Methods

Constructors

Methods

  • Adds a new measurement.

    Parameters

    • x: number

      The measurement value.

    Returns void

  • The total sum of added measurements.

    Returns number

Generated using TypeDoc