public class MeanAndStandardDeviation extends java.lang.Object implements java.io.Serializable
DefaultStatisticalCategoryDataset
class.Constructor and Description |
---|
MeanAndStandardDeviation(double mean,
double standardDeviation)
Creates a new mean and standard deviation record.
|
MeanAndStandardDeviation(java.lang.Number mean,
java.lang.Number standardDeviation)
Creates a new mean and standard deviation record.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
java.lang.Number |
getMean()
Returns the mean.
|
double |
getMeanValue()
Returns the mean as a double primitive.
|
java.lang.Number |
getStandardDeviation()
Returns the standard deviation.
|
double |
getStandardDeviationValue()
Returns the standard deviation as a double primitive.
|
java.lang.String |
toString()
Returns a string representing this instance.
|
public MeanAndStandardDeviation(double mean, double standardDeviation)
mean
- the mean.standardDeviation
- the standard deviation.public MeanAndStandardDeviation(java.lang.Number mean, java.lang.Number standardDeviation)
mean
- the mean (null
permitted).standardDeviation
- the standard deviation (null
permitted.public java.lang.Number getMean()
public double getMeanValue()
null
, this method will return Double.NaN
.getMean()
public java.lang.Number getStandardDeviation()
public double getStandardDeviationValue()
null
, this method will return
Double.NaN
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public java.lang.String toString()
toString
in class java.lang.Object