bb.science
Class Bootstrap.EstimatorSd

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

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

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

This class is multithread safe: it is stateless.


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

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