java.lang.Object
org.rrd4j.data.Variable
org.rrd4j.data.Variable.PERCENTILE
- Direct Known Subclasses:
Variable.PERCENTILENAN
- Enclosing class:
Variable
Find the point at the n-th percentile.
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
FieldsModifier and TypeFieldDescriptionprivate final floatPercentile threshold (0-100)private final booleanWhether to include NaN values in calculationFields inherited from class Variable
INVALIDVALUEModifier and TypeFieldDescriptionstatic final Variable.ValueRepresents an invalid value with NaN (Not a Number) value.Constructor Summary
ConstructorsModifierConstructorDescriptionPERCENTILE(double percentile) Creates a percentile calculation that lets gap entries count in the ranking.PERCENTILE(float percentile) Creates a percentile calculation that lets gap entries count in the ranking.protectedPERCENTILE(float percentile, boolean withNaN) Creates a percentile calculation.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.
Field Details
percentile
private final float percentilePercentile threshold (0-100)withNaN
private final boolean withNaNWhether to include NaN values in calculation
Constructor Details
PERCENTILE
protected PERCENTILE(float percentile, boolean withNaN) Creates a percentile calculation.- Parameters:
percentile- rank to report, 0 for the smallest point through 100 for the largestwithNaN- whether gap entries take part in the ranking; being ranked below every finite point, they push the reported value up when included
PERCENTILE
public PERCENTILE(double percentile) Creates a percentile calculation that lets gap entries count in the ranking.- Parameters:
percentile- rank to report, 0 for the smallest point through 100 for the largest
PERCENTILE
public PERCENTILE(float percentile) Creates a percentile calculation that lets gap entries count in the ranking.- Parameters:
percentile- rank to report, 0 for the smallest point through 100 for the largest
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