Package 

Class KahanSum


  • 
    public final class KahanSum
    
                        

    Kahan-Babuska summation.

    See https://en.wikipedia.org/wiki/Kahan_summation_algorithm for details.

    • Constructor Summary

      Constructors 
      Constructor Description
      KahanSum(Double accumulator)
    • Method Summary

      Modifier and Type Method Description
      final KahanSum feed(Double value) Supplies a number to be added to the accumulator.
      final Unit plusAssign(Double value)
      final Double result() Returns the sum accumulated so far.
      • Methods inherited from class org.jetbrains.bio.viktor.KahanSum

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait