Package de.uka.ipd.sdq.probfunction.math
Interface IDiscretePDFFactory
-
- All Known Subinterfaces:
IPDFFactory
- All Known Implementing Classes:
PDFFactory
public interface IDiscretePDFFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IBinomialDistribution
createBinomialDistribution(int trials, double probability)
Creates a new BinomialDistribution for doing math.IPoissonDistribution
createPoissonDistribution(double mean)
Creates a new PoissonDistribution for doing math.IUniformIntDistribution
createUniformIntDistribution(int a, int b)
Creates a new UniformIntDistribution for doing math.
-
-
-
Method Detail
-
createBinomialDistribution
IBinomialDistribution createBinomialDistribution(int trials, double probability)
Creates a new BinomialDistribution for doing math.- Parameters:
trials
- The trialsprobability
- The probability of success- Returns:
- The distribution
-
createPoissonDistribution
IPoissonDistribution createPoissonDistribution(double mean)
Creates a new PoissonDistribution for doing math.- Parameters:
mean
- The mean- Returns:
- The distribution
-
createUniformIntDistribution
IUniformIntDistribution createUniformIntDistribution(int a, int b)
Creates a new UniformIntDistribution for doing math.- Parameters:
a
- The a valueb
- The b value- Returns:
- The distribution
-
-