bb.science
Class Bootstrap.UnitTest.CauchyStandard

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

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

Implements the standard Cauchy distribution (i.e. x0 = 0, gamma = 1).

This class is multithread safe: it is stateless.

See Also:
wikipedia article, NIST article

Constructor Summary
private Bootstrap.UnitTest.CauchyStandard()
           
 
Method Summary
 double[] generateSample(int n)
           
 double getMean()
           
 Bootstrap.Estimate getMeanEst(double[] sample, double confidenceLevel)
           
 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.CauchyStandard

private Bootstrap.UnitTest.CauchyStandard()
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)

getSdEst

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