org.apache.commons.math.stat.descriptive
public class StatisticalSummaryValues extends Object implements Serializable, StatisticalSummary
Modifier and Type | Field and Description |
---|---|
private double |
max
The maximum value
|
private double |
mean
The sample mean
|
private double |
min
The minimum value
|
private long |
n
The number of observations in the sample
|
private static long |
serialVersionUID
Serialization id
|
private double |
sum
The sum of the sample values
|
private double |
variance
The sample variance
|
Constructor and Description |
---|
StatisticalSummaryValues(double mean,
double variance,
long n,
double max,
double min,
double sum)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Returns true iff
object is a
StatisticalSummaryValues instance and all statistics have
the same values as this. |
double |
getMax()
Returns the maximum of the available values
|
double |
getMean()
Returns the
arithmetic mean of the available values
|
double |
getMin()
Returns the minimum of the available values
|
long |
getN()
Returns the number of available values
|
double |
getStandardDeviation()
Returns the standard deviation of the available values.
|
double |
getSum()
Returns the sum of the values that have been added to Univariate.
|
double |
getVariance()
Returns the variance of the available values.
|
int |
hashCode()
Returns hash code based on values of statistics
|
String |
toString()
Generates a text report displaying values of statistics.
|
private static final long serialVersionUID
private final double mean
private final double variance
private final long n
private final double max
private final double min
private final double sum
public StatisticalSummaryValues(double mean, double variance, long n, double max, double min, double sum)
mean
- the sample meanvariance
- the sample variancen
- the number of observations in the samplemax
- the maximum valuemin
- the minimum valuesum
- the sum of the valuespublic double getMax()
StatisticalSummary
getMax
in interface StatisticalSummary
public double getMean()
StatisticalSummary
getMean
in interface StatisticalSummary
public double getMin()
StatisticalSummary
getMin
in interface StatisticalSummary
public long getN()
StatisticalSummary
getN
in interface StatisticalSummary
public double getSum()
StatisticalSummary
getSum
in interface StatisticalSummary
public double getStandardDeviation()
StatisticalSummary
getStandardDeviation
in interface StatisticalSummary
public double getVariance()
StatisticalSummary
getVariance
in interface StatisticalSummary
public boolean equals(Object object)
object
is a
StatisticalSummaryValues
instance and all statistics have
the same values as this.public int hashCode()
Copyright (c) 2003-2013 Apache Software Foundation