public class StatisticalData extends Object implements Statistics
Statistics
NO_STATISTICS
Constructor and Description |
---|
StatisticalData(int count,
long maximum,
long minimum,
double mean,
double variance) |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Get the number of samples to which these statistics apply.
|
long |
getMaximum()
Get the maximum of the sampled values.
|
double |
getMean()
The mean (or average) of the sampled values.
|
long |
getMinimum()
Get the minimum of the sampled values.
|
double |
getStandardDeviation()
Get the standard deviation of the sampled values, which is a measure of how spread out the numbers are and is the square
root of the
variance . |
double |
getVariance()
Get the variance of the sampled values, which is the average of the squared differences from the
mean . |
@ConstructorProperties(value={"count","maximum","minimum","mean","variance"}) public StatisticalData(int count, long maximum, long minimum, double mean, double variance)
count
- number of elements in the samplemaximum
- max value from the sampleminimum
- min value from the samplemean
- sample meanvariance
- sample variancepublic int getCount()
Statistics
getCount
in interface Statistics
public long getMaximum()
Statistics
getMaximum
in interface Statistics
public long getMinimum()
Statistics
getMinimum
in interface Statistics
public double getMean()
Statistics
getMean
in interface Statistics
public double getVariance()
Statistics
mean
.getVariance
in interface Statistics
public double getStandardDeviation()
Statistics
variance
.getStandardDeviation
in interface Statistics
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.