Package org.jfree.data.statistics
Class MeanAndStandardDeviation
- java.lang.Object
-
- org.jfree.data.statistics.MeanAndStandardDeviation
-
- All Implemented Interfaces:
Serializable
public class MeanAndStandardDeviation extends Object implements Serializable
A simple data structure that holds a mean value and a standard deviation value. This is used in theDefaultStatisticalCategoryDataset
class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeanAndStandardDeviation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Tests this instance for equality with an arbitrary object.Number
getMean()
Returns the mean.double
getMeanValue()
Returns the mean as a double primitive.Number
getStandardDeviation()
Returns the standard deviation.double
getStandardDeviationValue()
Returns the standard deviation as a double primitive.String
toString()
Returns a string representing this instance.
-
-
-
Method Detail
-
getMean
public Number 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.
- Since:
- 1.0.7
- See Also:
getMean()
-
getStandardDeviation
public Number 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.
- Since:
- 1.0.7
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
-
-