java.lang.Object
org.jfree.data.statistics.MeanAndStandardDeviation
- All Implemented Interfaces:
Serializable
A simple data structure that holds a mean value and a standard deviation
value. This is used in the
DefaultStatisticalCategoryDataset
class.- See Also:
-
Constructor Summary
ConstructorDescriptionMeanAndStandardDeviation
(double mean, double standardDeviation) Creates a new mean and standard deviation record.MeanAndStandardDeviation
(Number mean, Number standardDeviation) Creates a new mean and standard deviation record. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this instance for equality with an arbitrary object.getMean()
Returns the mean.double
Returns the mean as a double primitive.Returns the standard deviation.double
Returns the standard deviation as a double primitive.toString()
Returns a string representing this instance.
-
Constructor Details
-
MeanAndStandardDeviation
public MeanAndStandardDeviation(double mean, double standardDeviation) Creates a new mean and standard deviation record.- Parameters:
mean
- the mean.standardDeviation
- the standard deviation.
-
MeanAndStandardDeviation
Creates a new mean and standard deviation record.- Parameters:
mean
- the mean (null
permitted).standardDeviation
- the standard deviation (null
permitted.
-
-
Method Details
-
getMean
Returns the mean.- Returns:
- The mean.
-
getMeanValue
public double getMeanValue()Returns the mean as a double primitive. If the underlying mean isnull
, this method will returnDouble.NaN
.- Returns:
- The mean.
- See Also:
-
getStandardDeviation
Returns the standard deviation.- Returns:
- The standard deviation.
-
getStandardDeviationValue
public double getStandardDeviationValue()Returns the standard deviation as a double primitive. If the underlying standard deviation isnull
, this method will returnDouble.NaN
.- Returns:
- The standard deviation.
-
equals
Tests this instance for equality with an arbitrary object. -
toString
Returns a string representing this instance.
-