com.sun.faban.driver.util.timermeter
Class StatisticalDescription
java.lang.Object
com.sun.faban.driver.util.timermeter.StatisticalDescription
- All Implemented Interfaces:
- Serializable
public class StatisticalDescription
- extends Object
- implements Serializable
A container for statistical values.
The parameter-taking constructor checks the passed values.
The field median_real_element
has the following meaning:
if the data for which this StatisticalDescription
was created
has an even number of elements, the conventional median is the average of
the two middle elements - in such a case,
median_real_element
carries the value of the "left" element of
these two. If there is an uneven number of elements, the value of field
median_real_element
should equal
that of field
median
.
- Version:
- 0.9
- Author:
- Michael Kuperberg
- See Also:
- Serialized Form
StatisticalDescription
public StatisticalDescription()
StatisticalDescription
public StatisticalDescription(Long max,
Double mean,
Double median,
Long median_real_element,
Long min,
Double standardDeviation,
Double variance)
checkConsistency
public boolean checkConsistency()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getLogger
public Logger getLogger()
getMax
public long getMax()
getMean
public double getMean()
getMedian
public double getMedian()
getMedian_real_element
public long getMedian_real_element()
getMin
public long getMin()
getStandardDeviation
public double getStandardDeviation()
getVariance
public double getVariance()
setMax
public void setMax(long max)
setMean
public void setMean(double mean)
setMedian
public void setMedian(double median)
setMedian_real_element
public void setMedian_real_element(long median_real_element)
setMin
public void setMin(long min)
setStandardDeviation
public void setStandardDeviation(double standardDeviation)
setVariance
public void setVariance(double variance)
shallowEquals
public boolean shallowEquals(Object obj)
- Shallow because standard deviation and variance are not compared.
- Parameters:
obj
-
- Returns:
toString
public String toString()
- Overrides:
toString
in class Object