Class Statistics
java.lang.Object
org.glassfish.pfl.tf.timer.spi.Statistics
A simple read-only holder for accumulated statistics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final longprivate final doubleprivate final doubleprivate final double -
Constructor Summary
ConstructorsConstructorDescriptionStatistics(long count, double min, double max, double average, double standardDeviation) -
Method Summary
Modifier and TypeMethodDescriptiondoubleaverage()Return the current average of the data, or -1 if there is no data.longcount()Return the number of data points recorded.booleaninthashCode()doublemax()Return the maximum value of call data points records.doublemin()Return the minimum value of call data points records.doubleReturn the standard deviation of the data, or -1 if there is no data.
-
Field Details
-
count
private final long count -
min
private final double min -
max
private final double max -
average
private final double average -
standardDeviation
private final double standardDeviation
-
-
Constructor Details
-
Statistics
public Statistics(long count, double min, double max, double average, double standardDeviation)
-
-
Method Details
-
count
public long count()Return the number of data points recorded. -
min
public double min()Return the minimum value of call data points records. -
max
public double max()Return the maximum value of call data points records. -
average
public double average()Return the current average of the data, or -1 if there is no data. -
standardDeviation
public double standardDeviation()Return the standard deviation of the data, or -1 if there is no data. -
equals
-
hashCode
-