|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--simulator.OldValue
Remember a sliding window of old value
Field Summary | |
protected int |
n
The actual size of sliding window |
protected int |
N
The number of element to remember |
protected double[] |
old
The storage of element to remember |
Constructor Summary | |
OldValue(int size)
Build an empty window of value |
Method Summary | |
double |
get()
Get the oldest value |
void |
set(double el)
Set the youngest value |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int N
protected int n
protected double[] old
Constructor Detail |
public OldValue(int size)
Method Detail |
public double get()
public void set(double el)
el
- the youngest value
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |