| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteos.util.ExpSmoother
public class ExpSmoother
This exponentially smooths a time series The smoothed value y(t) at step t is y(t) = timeConstant*y(t-1) + (1 - timeConstant)*x(t), where x(t) is the new data point at step t
| Constructor Summary | |
|---|---|
ExpSmoother(double timeConstant)
Create a new ExpSmoother with time constant timeConstant  | 
|
| Method Summary | |
|---|---|
 double | 
initialize(double val)
Initialize smoothed value to value in argument Note: not used right now  | 
 double | 
update(double val)
Return updated smoothed value when val is new data point  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ExpSmoother(double timeConstant)
timeConstant - | Method Detail | 
|---|
public double update(double val)
val - 
public double initialize(double val)
val - 
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||