public class TimeSeriesAverage extends Object implements TimeSeries
Constructor and Description |
---|
TimeSeriesAverage(TimeSeries value,
TimeSeries counter)
Same as
TimeSeriesAverage(TimeSeries, TimeSeries, long) passing 0 for the 3rd argument. |
TimeSeriesAverage(TimeSeries value,
TimeSeries counter,
long missingValue) |
Modifier and Type | Method and Description |
---|---|
long |
getMissingValue()
The value used to encode missing values i.e.
|
long[] |
getValuePerHour()
Returns the measured value per hour over the last week.
|
long[] |
getValuePerMinute()
Returns the measured value per minute over the last hour.
|
long[] |
getValuePerSecond()
Returns the measured value per second over the last minute.
|
long[] |
getValuePerWeek()
Returns the measured value per week over the last three years.
|
public TimeSeriesAverage(TimeSeries value, TimeSeries counter)
TimeSeriesAverage(TimeSeries, TimeSeries, long)
passing 0 for the 3rd argument.value
- TimeSeries
of valuescounter
- TimeSeries
of countspublic TimeSeriesAverage(TimeSeries value, TimeSeries counter, long missingValue)
value
- TimeSeries
of valuescounter
- TimeSeries
of countsmissingValue
- The value used to encode missing valuespublic long getMissingValue()
TimeSeries
getMissingValue
in interface TimeSeries
public long[] getValuePerSecond()
TimeSeries
getValuePerSecond
in interface TimeSeries
public long[] getValuePerMinute()
TimeSeries
getValuePerMinute
in interface TimeSeries
public long[] getValuePerHour()
TimeSeries
getValuePerHour
in interface TimeSeries
public long[] getValuePerWeek()
TimeSeries
getValuePerWeek
in interface TimeSeries
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.