bb.science
Class Bootstrap.UnitTest.ExponentialStandard

java.lang.Object
  extended by bb.science.Bootstrap.UnitTest.DistributionAbstract
      extended by bb.science.Bootstrap.UnitTest.ExponentialStandard
All Implemented Interfaces:
Bootstrap.UnitTest.Distribution
Enclosing class:
Bootstrap.UnitTest

private static class Bootstrap.UnitTest.ExponentialStandard
extends Bootstrap.UnitTest.DistributionAbstract

Implements the standard exponential distribution (i.e. lambda = 1).

This class is multithread safe: it is stateless.

See Also:
wikipedia article, NIST article

Constructor Summary
private Bootstrap.UnitTest.ExponentialStandard()
           
 
Method Summary
 double[] generateSample(int n)
           
 double getMean()
           
 Bootstrap.Estimate getMeanEst(double[] sample, double confidenceLevel)
           See this discussion (the solution is in the middle of the page; the original solution is claimed to be found in Kapur, K.
 double getMedian()
           
 String getName()
           
 double getSd()
           
 Bootstrap.Estimate getSdEst(double[] sample, double confidenceLevel)
           
 
Methods inherited from class bb.science.Bootstrap.UnitTest.DistributionAbstract
getMedianEst, random01
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap.UnitTest.ExponentialStandard

private Bootstrap.UnitTest.ExponentialStandard()
Method Detail

getName

public String getName()

generateSample

public double[] generateSample(int n)

getMean

public double getMean()

getMedian

public double getMedian()

getSd

public double getSd()

getMeanEst

public Bootstrap.Estimate getMeanEst(double[] sample,
                                     double confidenceLevel)

See this discussion (the solution is in the middle of the page; the original solution is claimed to be found in Kapur, K. C. and Lamberson, L. R. (1977), Reliability in Engineering Design, New York: John Wiley & Sons, Inc.); the beginning of this article also discusses at what the best estimators for the mean of the exp dist are).


getSdEst

public Bootstrap.Estimate getSdEst(double[] sample,
                                   double confidenceLevel)