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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UniformIntDistributionImpl(int a, int b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cumulativeProbability(int x)
int
getA()
int
getB()
protected int
getDomainLowerBound(double p)
protected int
getDomainUpperBound(double p)
double
getMean()
double
getVariance()
double
probability(int x)
-
-
-
Method Detail
-
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()
-
-