Class UniformDistributionImpl
- java.lang.Object
-
- org.apache.commons.math.distribution.AbstractDistribution
-
- org.apache.commons.math.distribution.AbstractContinuousDistribution
-
- de.uka.ipd.sdq.probfunction.math.apache.distribution.UniformDistributionImpl
-
- All Implemented Interfaces:
Serializable
,org.apache.commons.math.distribution.ContinuousDistribution
,org.apache.commons.math.distribution.Distribution
public class UniformDistributionImpl extends org.apache.commons.math.distribution.AbstractContinuousDistribution
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UniformDistributionImpl(double a, double b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cumulativeProbability(double x)
double
getA()
double
getB()
protected double
getDomainLowerBound(double p)
protected double
getDomainUpperBound(double p)
protected double
getInitialDomain(double p)
double
getMean()
double
getVariance()
-
Methods inherited from class org.apache.commons.math.distribution.AbstractContinuousDistribution
density, getSolverAbsoluteAccuracy, inverseCumulativeProbability
-
Methods inherited from class org.apache.commons.math.distribution.AbstractDistribution
cumulativeProbability
-
-
-
-
Method Detail
-
getA
public double getA()
-
getB
public double getB()
-
cumulativeProbability
public double cumulativeProbability(double x) throws org.apache.commons.math.MathException
- Throws:
org.apache.commons.math.MathException
-
getDomainLowerBound
protected double getDomainLowerBound(double p)
- Specified by:
getDomainLowerBound
in classorg.apache.commons.math.distribution.AbstractContinuousDistribution
-
getDomainUpperBound
protected double getDomainUpperBound(double p)
- Specified by:
getDomainUpperBound
in classorg.apache.commons.math.distribution.AbstractContinuousDistribution
-
getMean
public double getMean()
-
getVariance
public double getVariance()
-
getInitialDomain
protected double getInitialDomain(double p)
- Specified by:
getInitialDomain
in classorg.apache.commons.math.distribution.AbstractContinuousDistribution
-
-