|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Ticker | +--AveragingTicker
An AveragingTicker
smooths out a stream of ticks
by applying a moving average function over an arbitrary number
of recent ticks.
Constructor Summary | |
AveragingTicker(java.lang.String filename,
int n)
Sole constructor. |
Method Summary | |
PointValue |
next()
Fetches the next point value |
Methods inherited from class Ticker |
max, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AveragingTicker(java.lang.String filename, int n)
filename
- source file for ticksn
- averaging window sizeMethod Detail |
public PointValue next()
Ticker
next
in interface DataSource
next
in class Ticker
null
if no more.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |