Spring Integration

org.springframework.integration.monitor
Class ExponentialMovingAverageCumulativeHistory

java.lang.Object
  extended by org.springframework.integration.monitor.ExponentialMovingAverageCumulativeHistory

public class ExponentialMovingAverageCumulativeHistory
extends Object

Cumulative statistics for a series of real numbers with higher weight given to recent data but without storing any history. Older values are given exponentially smaller weight, with a decay factor determined by a "window" size chosen by the client.

Author:
Dave Syer

Constructor Summary
ExponentialMovingAverageCumulativeHistory(int window)
           
 
Method Summary
 void append(double value)
           
 int getCount()
           
 double getMax()
           
 double getMean()
           
 double getMin()
           
 double getStandardDeviation()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExponentialMovingAverageCumulativeHistory

public ExponentialMovingAverageCumulativeHistory(int window)
Parameters:
window - the exponential lapse window (number of measurements)
Method Detail

append

public void append(double value)

getCount

public int getCount()

getMean

public double getMean()

getStandardDeviation

public double getStandardDeviation()

getMax

public double getMax()

getMin

public double getMin()

toString

public String toString()
Overrides:
toString in class Object

Spring Integration

Copyright © 2010. All Rights Reserved.