java.lang.Object
org.rrd4j.data.Variable
org.rrd4j.data.Variable.TOTAL
- Enclosing class:
Variable
Calculate the sum of the data points.
Nested Class Summary
Nested classes/interfaces inherited from class Variable
Variable.AVERAGE, Variable.ComparPercentElemen, Variable.FIRST, Variable.LAST, Variable.LSLCORREL, Variable.LSLINT, Variable.LSLSLOPE, Variable.MAX, Variable.MIN, Variable.PercentElem, Variable.PERCENTILE, Variable.PERCENTILENAN, Variable.STDDEV, Variable.TOTAL, Variable.ValueModifier and TypeClassDescriptionstatic classCalculate the average of the data points.(package private) static final classThe sort used by rrdtool for percent, where NaN < -INF < finite values < INFstatic classFind the first valid data point and it's timestampstatic classFind the first last valid point and it's timestampstatic classCalculate the correlation coefficient of the least squares line.static classCalculate the y-intercept of the least squares line.static classCalculate the slop of the least squares line.static classThe biggest of the data points, stamped with the latest point attaining it.static classThe smallest of the data points, stamped with the latest point attaining it.(package private) static final classStore all the informations about a datasource point, for predictive and consistent sortingstatic classFind the point at the n-th percentile.static classPercentile calculation that leaves gap entries out of the ranking.static classCalculate the standard deviation for the data point.static classCalculate the sum of the data points.static final classThis class store both the value and the time stamp It will be used by graph rendering legendField Summary
Fields inherited from class Variable
INVALIDVALUEModifier and TypeFieldDescriptionstatic final Variable.ValueRepresents an invalid value with NaN (Not a Number) value.Constructor Summary
ConstructorsConstructorDescriptionTOTAL()Creates a selector for the total: the points summed and scaled by the interval between the first two timestamps.Method Summary
All MethodsModifier and TypeMethodDescriptionprotected Variable.Valuefill(long[] timestamps, double[] values, long start, long end) This method is call with the needed values, extracted from the datasource to do the calculation.Methods inherited from class Variable
calculate, getValueModifier and TypeMethodDescription(package private) voidUsed to calculate the needed value from a source, this method call the abstract methodVariable.fill(long[], double[], long, long).getValue()Returns the value left by the lastVariable.calculate(Source, long, long)call.
Constructor Details
TOTAL
public TOTAL()Creates a selector for the total: the points summed and scaled by the interval between the first two timestamps.
Method Details
fill
Description copied from class:VariableThis method is call with the needed values, extracted from the datasource to do the calculation.Value is to be filled with both the double value and a possible timestamp, when it's used to find a specific point