bb.science
Class Bootstrap.UnitTest.ExponentialStandard
java.lang.Object
bb.science.Bootstrap.UnitTest.DistributionAbstract
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bootstrap.UnitTest.ExponentialStandard
private Bootstrap.UnitTest.ExponentialStandard()
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)