JMSLTM Numerical Library 4.0

com.imsl.chart
Class BoxPlot.Statistics

java.lang.Object
  extended bycom.imsl.chart.BoxPlot.Statistics
All Implemented Interfaces:
Serializable
Enclosing class:
BoxPlot

public static class BoxPlot.Statistics
extends Object
implements Serializable

Computes the statistics for one set of observations in a Boxplot.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
BoxPlot.Statistics(double[] obs)
          Creates a new instance of BoxPlot.Statistics.
 
Method Summary
 double[] getFarMarkers()
          Returns the array of far markers.
 double getLowerAdjacentValue()
          Returns the lower adjacent value.
 double getLowerQuartile()
          Returns the lower quartile value.
 double getMaximumValue()
          Returns the maximum value of the observations.
 double getMedian()
          Returns the median value.
 double getMedianLowerConfidenceInterval()
          Returns the lower confidence interval for the median.
 double getMedianUpperConfidenceInterval()
          Returns the upper confidence interval for the median.
 double getMinimumValue()
          Returns the minimum value of the observations.
 int getNumberObservations()
          Returns the number of observations.
 double[] getOutsideMarkers()
          Returns the array of outside markers.
 double getUpperAdjacentValue()
          Returns the lower adjacent value.
 double getUpperQuartile()
          Returns the upper quartile value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

BoxPlot.Statistics

public BoxPlot.Statistics(double[] obs)
Creates a new instance of BoxPlot.Statistics.

Parameters:
obs - a double array containing the set of observations. There must be at least 4 observations to compute the statistics.
Throws:
IllegalArgumentException - is thrown if there are fewer than 4 observations.
Method Detail

getFarMarkers

public double[] getFarMarkers()
Returns the array of far markers.

Returns:
a double array containing the far markers for this set

getLowerAdjacentValue

public double getLowerAdjacentValue()
Returns the lower adjacent value.

Returns:
a double which specifies the lower adjacent value

getLowerQuartile

public double getLowerQuartile()
Returns the lower quartile value.

Returns:
a double which specifies the lower quartile value (25th percentile)

getMaximumValue

public double getMaximumValue()
Returns the maximum value of the observations.

Returns:
a double which specifies the the maximum value of this set

getMedian

public double getMedian()
Returns the median value.

Returns:
a double which specifies the median value for the set of observations

getMedianLowerConfidenceInterval

public double getMedianLowerConfidenceInterval()
Returns the lower confidence interval for the median.

Returns:
a double which specifies the lower confidence interval for the median value of this set of observations

getMedianUpperConfidenceInterval

public double getMedianUpperConfidenceInterval()
Returns the upper confidence interval for the median.

Returns:
a double which specifies the upper confidence interval for the median value of this set of observations

getMinimumValue

public double getMinimumValue()
Returns the minimum value of the observations.

Returns:
a double which specifies the the minimum value of this set

getNumberObservations

public int getNumberObservations()
Returns the number of observations.

Returns:
an int which specifies the number of observations in this set

getOutsideMarkers

public double[] getOutsideMarkers()
Returns the array of outside markers.

Returns:
a double array containing the outside markers for this set

getUpperAdjacentValue

public double getUpperAdjacentValue()
Returns the lower adjacent value.

Returns:
a double which specifies the upper adjacent value

getUpperQuartile

public double getUpperQuartile()
Returns the upper quartile value.

Returns:
a double which specifies the upper quartile value (75th percentile)

JMSLTM Numerical Library 4.0

Copyright 1970-2006 Visual Numerics, Inc.
Built June 1 2006.