org.jfree.data.statistics

Class MeanAndStandardDeviation

Implemented Interfaces:
Serializable

public class MeanAndStandardDeviation
extends java.lang.Object
implements Serializable

A simple data structure that holds a mean value and a standard deviation value. This is used in the DefaultStatisticalCategoryDataset class.

Constructor Summary

MeanAndStandardDeviation(Number mean, Number standardDeviation)
Creates a new mean and standard deviation record.
MeanAndStandardDeviation(double mean, double standardDeviation)
Creates a new mean and standard deviation record.

Method Summary

boolean
equals(Object obj)
Tests this instance for equality with an arbitrary object.
Number
getMean()
Returns the mean.
Number
getStandardDeviation()
Returns the standard deviation.

Constructor Details

MeanAndStandardDeviation

public MeanAndStandardDeviation(Number mean,
                                Number standardDeviation)
Creates a new mean and standard deviation record.
Parameters:
mean - the mean (null permitted).
standardDeviation - the standard deviation (null permitted.

MeanAndStandardDeviation

public MeanAndStandardDeviation(double mean,
                                double standardDeviation)
Creates a new mean and standard deviation record.
Parameters:
mean - the mean.
standardDeviation - the standard deviation.

Method Details

equals

public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

getMean

public Number getMean()
Returns the mean.
Returns:
The mean.

getStandardDeviation

public Number getStandardDeviation()
Returns the standard deviation.
Returns:
The standard deviation.