bb.science
Interface Bootstrap.Estimator

All Known Implementing Classes:
Bootstrap.EstimatorMean, Bootstrap.EstimatorMedian, Bootstrap.EstimatorSd
Enclosing class:
Bootstrap

public static interface Bootstrap.Estimator

Specifies the api for classes that calculate an estimate for a statistic from a sample.

Implementations must be multithread safe.


Method Summary
 double calculate(double[] sample)
          Calculates a point estimate for the statistic based on sample.
 String getName()
          Returns the name of the Estimator.
 

Method Detail

getName

String getName()
Returns the name of the Estimator.

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


calculate

double calculate(double[] sample)
                 throws IllegalArgumentException
Calculates a point estimate for the statistic based on sample.

Throws:
IllegalArgumentException - if sample is null or zero-length; any element of sample is NaN