public class EventParameterSimpleMovingAverage extends Object implements ChainedEventObserver, ValueStatistic<Double>
| Constructor and Description |
|---|
EventParameterSimpleMovingAverage(long time,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
double |
average() |
ValueStatistic<Double> |
averageStatistic() |
void |
event(long time,
long... parameters)
Called to indicate an event happened.
|
Long |
maximum() |
ValueStatistic<Long> |
maximumStatistic() |
Long |
minimum() |
ValueStatistic<Long> |
minimumStatistic() |
void |
setWindow(long time,
TimeUnit unit) |
StatisticType |
type() |
Double |
value() |
public EventParameterSimpleMovingAverage(long time,
TimeUnit unit)
public void setWindow(long time,
TimeUnit unit)
public Double value()
value in interface ValueStatistic<Double>public StatisticType type()
type in interface ValueStatistic<Double>public ValueStatistic<Double> averageStatistic()
public ValueStatistic<Long> minimumStatistic()
public ValueStatistic<Long> maximumStatistic()
public final double average()
public final Long maximum()
public final Long minimum()
public void event(long time,
long... parameters)
ChainedEventObserverevent in interface ChainedEventObservertime - the time of the eventparameters - the event parametersCopyright © 2018. All rights reserved.