public class Aggregates extends Object implements ConsolFuns
getAggregates()
method in
FetchData
and
DataProcessor.getAggregates(String)
DataProcessor} classes.Modifier and Type | Field and Description |
---|---|
(package private) double |
average |
(package private) double |
first |
(package private) double |
last |
(package private) double |
lslcorrel |
(package private) double |
lslint |
(package private) double |
lslslope |
(package private) double |
max |
(package private) double |
min |
(package private) double |
stdev |
(package private) double |
total |
CF_AVERAGE, CF_FIRST, CF_LAST, CF_MAX, CF_MIN, CF_TOTAL
Constructor and Description |
---|
Aggregates() |
Modifier and Type | Method and Description |
---|---|
String |
dump()
Returns String representing all aggregated values.
|
double |
getAggregate(String consolFun)
Returns single aggregated value for the give consolidation function
|
double |
getAverage()
Returns average
|
double |
getFirst()
Returns the first falue
|
double |
getLast()
Returns the last value
|
double |
getLSLCorrel()
Returns Least Squares Line Correlation Coefficient
|
double |
getLSLInt()
Returns Least Squares Line y-intercept value
|
double |
getLSLSlope()
Returns Least Squares Line Slope value
|
double |
getMax()
Returns the maximum value
|
double |
getMin()
Returns the minimal value
|
double |
getStdev()
Returns stdev value
|
double |
getTotal()
Returns total value
|
double min
double max
double first
double last
double average
double total
double stdev
double lslslope
double lslint
double lslcorrel
public double getMin()
public double getMax()
public double getFirst()
public double getLast()
public double getAverage()
public double getTotal()
public double getStdev()
public double getLSLSlope()
public double getLSLInt()
public double getLSLCorrel()
public double getAggregate(String consolFun) throws RrdException
consolFun
- Consolidation function: MIN, MAX, FIRST, LAST, AVERAGE, TOTAL. These constants
are conveniently defined in the ConsolFuns
interface.RrdException
- Thrown if unsupported consolidation function is suppliedpublic String dump()