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