bb.science
Class Bootstrap.EstimatorMean

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

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

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

This class is multithread safe: it is stateless.


Constructor Summary
Bootstrap.EstimatorMean()
           
 
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.EstimatorMean

public Bootstrap.EstimatorMean()
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