eu.planets_project.services.java_se.image.metrics
Class KahanSummation

java.lang.Object
  extended by eu.planets_project.services.java_se.image.metrics.KahanSummation

public class KahanSummation
extends Object

Utility class to perform Kahan summation of a series of numbers. See http://en.wikipedia.org/wiki/Kahan_summation_algorithm

Author:
AnJackson

Constructor Summary
KahanSummation()
           
 
Method Summary
 void add(double in)
           
 double getSum()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KahanSummation

public KahanSummation()
Method Detail

add

public void add(double in)

getSum

public double getSum()


Copyright © 2013 Open Planets Foundation. All Rights Reserved.