org.apache.commons.math.distribution
Interface HypergeometricDistribution

All Superinterfaces:
DiscreteDistribution, Distribution, IntegerDistribution
All Known Implementing Classes:
HypergeometricDistributionImpl

public interface HypergeometricDistribution
extends IntegerDistribution

The Hypergeometric Distribution. Instances of HypergeometricDistribution objects should be created using DistributionFactory.createHypergeometricDistribution(int, int, int).

References:

Version:
$Revision: 155427 $ $Date: 2005-02-26 06:11:52 -0700 (Sat, 26 Feb 2005) $

Method Summary
 int getNumberOfSuccesses()
          Access the number of successes.
 int getPopulationSize()
          Access the population size.
 int getSampleSize()
          Access the sample size.
 void setNumberOfSuccesses(int num)
          Modify the number of successes.
 void setPopulationSize(int size)
          Modify the population size.
 void setSampleSize(int size)
          Modify the sample size.
 
Methods inherited from interface org.apache.commons.math.distribution.IntegerDistribution
cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability
 
Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution
probability
 
Methods inherited from interface org.apache.commons.math.distribution.Distribution
cumulativeProbability, cumulativeProbability
 

Method Detail

getNumberOfSuccesses

int getNumberOfSuccesses()
Access the number of successes.

Returns:
the number of successes.

getPopulationSize

int getPopulationSize()
Access the population size.

Returns:
the population size.

getSampleSize

int getSampleSize()
Access the sample size.

Returns:
the sample size.

setNumberOfSuccesses

void setNumberOfSuccesses(int num)
Modify the number of successes.

Parameters:
num - the new number of successes.

setPopulationSize

void setPopulationSize(int size)
Modify the population size.

Parameters:
size - the new population size.

setSampleSize

void setSampleSize(int size)
Modify the sample size.

Parameters:
size - the new sample size.


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.