|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.util.MathUtils.SMA
public static class MathUtils.SMA
Simple Moving Average
| Constructor Summary | |
|---|---|
MathUtils.SMA(int length)
|
|
| Method Summary | |
|---|---|
double |
compute(double value)
Compute the moving average. |
double |
currentAverage()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MathUtils.SMA(int length)
length - the maximum length| Method Detail |
|---|
public double currentAverage()
public double compute(double value)
value - The value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||