|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.math.distribution.DistributionFactory
org.apache.commons.math.distribution.DistributionFactoryImpl
A concrete distribution factory. This is the default factory used by Commons-Math.
| Constructor Summary | |
DistributionFactoryImpl()
Default constructor. |
|
| Method Summary | |
BinomialDistribution |
createBinomialDistribution(int numberOfTrials,
double probabilityOfSuccess)
Create a binomial distribution with the given number of trials and probability of success. |
ChiSquaredDistribution |
createChiSquareDistribution(double degreesOfFreedom)
Create a new chi-square distribution with the given degrees of freedom. |
ExponentialDistribution |
createExponentialDistribution(double mean)
Create a new exponential distribution with the given degrees of freedom. |
FDistribution |
createFDistribution(double numeratorDegreesOfFreedom,
double denominatorDegreesOfFreedom)
Create a new F-distribution with the given degrees of freedom. |
GammaDistribution |
createGammaDistribution(double alpha,
double beta)
Create a new gamma distribution the given shape and scale parameters. |
HypergeometricDistribution |
createHypergeometricDistribution(int populationSize,
int numberOfSuccesses,
int sampleSize)
Create a new hypergeometric distribution with the given the population size, the number of successes in the population, and the sample size. |
NormalDistribution |
createNormalDistribution()
Create a new normal distribution with the mean zero and standard deviation one. |
NormalDistribution |
createNormalDistribution(double mean,
double sd)
Create a new normal distribution with the given mean and standard deviation. |
PoissonDistribution |
createPoissonDistribution(double lambda)
Create a new Poisson distribution with poisson parameter lambda. |
TDistribution |
createTDistribution(double degreesOfFreedom)
Create a new t distribution with the given degrees of freedom. |
| Methods inherited from class org.apache.commons.math.distribution.DistributionFactory |
createCauchyDistribution, createWeibullDistribution, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DistributionFactoryImpl()
| Method Detail |
public ChiSquaredDistribution createChiSquareDistribution(double degreesOfFreedom)
createChiSquareDistribution in class DistributionFactorydegreesOfFreedom - degrees of freedom
public GammaDistribution createGammaDistribution(double alpha,
double beta)
createGammaDistribution in class DistributionFactoryalpha - the shape parameterbeta - the scale parameter
public TDistribution createTDistribution(double degreesOfFreedom)
createTDistribution in class DistributionFactorydegreesOfFreedom - degrees of freedom
public FDistribution createFDistribution(double numeratorDegreesOfFreedom,
double denominatorDegreesOfFreedom)
createFDistribution in class DistributionFactorynumeratorDegreesOfFreedom - numerator degrees of freedomdenominatorDegreesOfFreedom - denominator degrees of freedom
public ExponentialDistribution createExponentialDistribution(double mean)
createExponentialDistribution in class DistributionFactorymean - mean
public BinomialDistribution createBinomialDistribution(int numberOfTrials,
double probabilityOfSuccess)
createBinomialDistribution in class DistributionFactorynumberOfTrials - the number of trialsprobabilityOfSuccess - the probability of success
public HypergeometricDistribution createHypergeometricDistribution(int populationSize,
int numberOfSuccesses,
int sampleSize)
createHypergeometricDistribution in class DistributionFactorypopulationSize - the population sizenumberOfSuccesses - number of successes in the populationsampleSize - the sample size
public NormalDistribution createNormalDistribution(double mean,
double sd)
createNormalDistribution in class DistributionFactorymean - the mean of the distributionsd - standard deviation
public NormalDistribution createNormalDistribution()
createNormalDistribution in class DistributionFactorypublic PoissonDistribution createPoissonDistribution(double lambda)
lambda must be postive; otherwise an
IllegalArgumentException is thrown.
createPoissonDistribution in class DistributionFactorylambda - poisson parameter
IllegalArgumentException - if lambda ≤ 0
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||