Class StatisticalSummaryValues
java.lang.Object
org.apache.commons.math3.stat.descriptive.StatisticalSummaryValues
- All Implemented Interfaces:
Serializable, StatisticalSummary
Value object representing the results of a univariate statistical summary.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticalSummaryValues(double mean, double variance, long n, double max, double min, double sum) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true iffobjectis aStatisticalSummaryValuesinstance and all statistics have the same values as this.doublegetMax()Returns the maximum of the available valuesdoublegetMean()Returns the arithmetic mean of the available valuesdoublegetMin()Returns the minimum of the available valueslonggetN()Returns the number of available valuesdoubleReturns the standard deviation of the available values.doublegetSum()Returns the sum of the values that have been added to Univariate.doubleReturns the variance of the available values.inthashCode()Returns hash code based on values of statisticstoString()Generates a text report displaying values of statistics.
-
Constructor Details
-
StatisticalSummaryValues
public StatisticalSummaryValues(double mean, double variance, long n, double max, double min, double sum) Constructor- Parameters:
mean- the sample meanvariance- the sample variancen- the number of observations in the samplemax- the maximum valuemin- the minimum valuesum- the sum of the values
-
-
Method Details
-
getMax
Description copied from interface:StatisticalSummaryReturns the maximum of the available values- Specified by:
getMaxin interfaceStatisticalSummary- Returns:
- Returns the max.
-
getMean
Description copied from interface:StatisticalSummaryReturns the arithmetic mean of the available values- Specified by:
getMeanin interfaceStatisticalSummary- Returns:
- Returns the mean.
-
getMin
Description copied from interface:StatisticalSummaryReturns the minimum of the available values- Specified by:
getMinin interfaceStatisticalSummary- Returns:
- Returns the min.
-
getN
Description copied from interface:StatisticalSummaryReturns the number of available values- Specified by:
getNin interfaceStatisticalSummary- Returns:
- Returns the number of values.
-
getSum
Description copied from interface:StatisticalSummaryReturns the sum of the values that have been added to Univariate.- Specified by:
getSumin interfaceStatisticalSummary- Returns:
- Returns the sum.
-
getStandardDeviation
Description copied from interface:StatisticalSummaryReturns the standard deviation of the available values.- Specified by:
getStandardDeviationin interfaceStatisticalSummary- Returns:
- Returns the standard deviation
-
getVariance
Description copied from interface:StatisticalSummaryReturns the variance of the available values.- Specified by:
getVariancein interfaceStatisticalSummary- Returns:
- Returns the variance.
-
equals
-
hashCode
-
toString
-