bb.science
Class Bootstrap.EstimatorMedian

java.lang.Object
  extended by bb.science.Bootstrap.EstimatorMedian
All Implemented Interfaces:
Bootstrap.Estimator
Enclosing class:
Bootstrap

public static class Bootstrap.EstimatorMedian
extends Object
implements Bootstrap.Estimator

Calculates a point estimate for the population's median from sample.

This class is multithread safe: it is stateless.


Constructor Summary
Bootstrap.EstimatorMedian()
           
 
Method Summary
 double calculate(double[] sample)
          Calculates a point estimate for the statistic based on sample.
 String getName()
          Returns the name of the Estimator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap.EstimatorMedian

public Bootstrap.EstimatorMedian()
Method Detail

getName

public String getName()
Description copied from interface: Bootstrap.Estimator
Returns the name of the Estimator.

Contract: the result is never blank (null or empty).

Specified by:
getName in interface Bootstrap.Estimator

calculate

public double calculate(double[] sample)
                 throws IllegalArgumentException
Description copied from interface: Bootstrap.Estimator
Calculates a point estimate for the statistic based on sample.

Specified by:
calculate in interface Bootstrap.Estimator
Throws:
IllegalArgumentException - if sample is null or zero-length; any element of sample is NaN