net.aerith.misao.util
Class HighOrderStatistics

java.lang.Object
  |
  +--net.aerith.misao.util.Statistics
        |
        +--net.aerith.misao.util.HighOrderStatistics

public class HighOrderStatistics
extends Statistics

The HighOrderStatistics represents statistics such as the median value, which are not obtained in order O(n).


Field Summary
protected  double median
          The median value;
 
Fields inherited from class net.aerith.misao.util.Statistics
average, data_count, deviation, maximum, maximum_limit, minimum, minimum_limit, target
 
Constructor Summary
HighOrderStatistics(Statisticable target)
          Constructs a HighOrderStatistics with a Statisticable.
 
Method Summary
 void calculate()
          Calculates the statistics of the target.
 double getMedian()
          Gets the median value.
protected  java.lang.String paramString()
          Returns a raw string representation of the state of this object, for debugging use.
 java.lang.String toString()
          Returns a string representation of the state of this object, for debugging use.
 
Methods inherited from class net.aerith.misao.util.Statistics
getAverage, getDeviation, getMax, getMin, getOutputString, getVariance, setMaximumLimit, setMinimumLimit
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

median

protected double median
The median value;
Constructor Detail

HighOrderStatistics

public HighOrderStatistics(Statisticable target)
Constructs a HighOrderStatistics with a Statisticable.
Parameters:
target - the target to calculate the statistics.
Method Detail

calculate

public void calculate()
Calculates the statistics of the target.
Overrides:
calculate in class Statistics

getMedian

public double getMedian()
Gets the median value.
Returns:
the median value.

paramString

protected java.lang.String paramString()
Returns a raw string representation of the state of this object, for debugging use. It should be invoked from toString method of the subclasses.
Overrides:
paramString in class Statistics
Returns:
a string representation of the state of this object.

toString

public java.lang.String toString()
Returns a string representation of the state of this object, for debugging use.
Overrides:
toString in class Statistics
Returns:
a string representation of the state of this object.