Class UniformIntDistributionImpl
java.lang.Object
org.apache.commons.math.distribution.AbstractDistribution
org.apache.commons.math.distribution.AbstractIntegerDistribution
de.uka.ipd.sdq.probfunction.math.apache.distribution.UniformIntDistributionImpl
- All Implemented Interfaces:
Serializable
,org.apache.commons.math.distribution.DiscreteDistribution
,org.apache.commons.math.distribution.Distribution
,org.apache.commons.math.distribution.IntegerDistribution
public class UniformIntDistributionImpl
extends org.apache.commons.math.distribution.AbstractIntegerDistribution
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
cumulativeProbability
(int x) int
getA()
int
getB()
protected int
getDomainLowerBound
(double p) protected int
getDomainUpperBound
(double p) double
getMean()
double
double
probability
(int x) Methods inherited from class org.apache.commons.math.distribution.AbstractIntegerDistribution
cumulativeProbability, cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability
-
Constructor Details
-
UniformIntDistributionImpl
public UniformIntDistributionImpl(int a, int b) throws org.apache.commons.math.MathException - Throws:
org.apache.commons.math.MathException
-
-
Method Details
-
getA
public int getA() -
getB
public int getB() -
cumulativeProbability
public double cumulativeProbability(int x) throws org.apache.commons.math.MathException - Specified by:
cumulativeProbability
in interfaceorg.apache.commons.math.distribution.IntegerDistribution
- Specified by:
cumulativeProbability
in classorg.apache.commons.math.distribution.AbstractIntegerDistribution
- Throws:
org.apache.commons.math.MathException
-
getDomainLowerBound
protected int getDomainLowerBound(double p) - Specified by:
getDomainLowerBound
in classorg.apache.commons.math.distribution.AbstractIntegerDistribution
-
getDomainUpperBound
protected int getDomainUpperBound(double p) - Specified by:
getDomainUpperBound
in classorg.apache.commons.math.distribution.AbstractIntegerDistribution
-
probability
public double probability(int x) -
getMean
public double getMean() -
getVariance
public double getVariance()
-