Class LognormalDistributionImpl
- java.lang.Object
-
- org.apache.commons.math.distribution.AbstractDistribution
-
- org.apache.commons.math.distribution.AbstractContinuousDistribution
-
- org.apache.commons.math.distribution.NormalDistributionImpl
-
- de.uka.ipd.sdq.probfunction.math.apache.distribution.LognormalDistributionImpl
-
- All Implemented Interfaces:
Serializable
,org.apache.commons.math.distribution.ContinuousDistribution
,org.apache.commons.math.distribution.Distribution
,org.apache.commons.math.distribution.HasDensity<Double>
,org.apache.commons.math.distribution.NormalDistribution
- Direct Known Subclasses:
LognormalDistributionFromMomentsImpl
public class LognormalDistributionImpl extends org.apache.commons.math.distribution.NormalDistributionImpl implements org.apache.commons.math.distribution.NormalDistribution
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LognormalDistributionImpl(double mu, double sigma)
Create a normal distribution using the given mean and standard deviation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cumulativeProbability(double x)
double
cumulativeProbability(double x0, double x1)
double
density(double x)
protected double
getDomainLowerBound(double p)
protected double
getDomainUpperBound(double p)
protected double
getInitialDomain(double p)
double
getMean()
double
getStandardDeviation()
double
inverseCumulativeProbability(double p)
-
Methods inherited from class org.apache.commons.math.distribution.NormalDistributionImpl
density, getSolverAbsoluteAccuracy, setMean, setStandardDeviation
-
-
-
-
Method Detail
-
cumulativeProbability
public double cumulativeProbability(double x) throws org.apache.commons.math.MathException
- Specified by:
cumulativeProbability
in interfaceorg.apache.commons.math.distribution.Distribution
- Overrides:
cumulativeProbability
in classorg.apache.commons.math.distribution.NormalDistributionImpl
- Throws:
org.apache.commons.math.MathException
-
cumulativeProbability
public double cumulativeProbability(double x0, double x1) throws org.apache.commons.math.MathException
- Specified by:
cumulativeProbability
in interfaceorg.apache.commons.math.distribution.Distribution
- Overrides:
cumulativeProbability
in classorg.apache.commons.math.distribution.AbstractDistribution
- Throws:
org.apache.commons.math.MathException
-
getMean
public double getMean()
- Specified by:
getMean
in interfaceorg.apache.commons.math.distribution.NormalDistribution
- Overrides:
getMean
in classorg.apache.commons.math.distribution.NormalDistributionImpl
-
density
public double density(double x)
- Overrides:
density
in classorg.apache.commons.math.distribution.NormalDistributionImpl
-
getStandardDeviation
public double getStandardDeviation()
- Specified by:
getStandardDeviation
in interfaceorg.apache.commons.math.distribution.NormalDistribution
- Overrides:
getStandardDeviation
in classorg.apache.commons.math.distribution.NormalDistributionImpl
-
inverseCumulativeProbability
public double inverseCumulativeProbability(double p) throws org.apache.commons.math.MathException
- Specified by:
inverseCumulativeProbability
in interfaceorg.apache.commons.math.distribution.ContinuousDistribution
- Overrides:
inverseCumulativeProbability
in classorg.apache.commons.math.distribution.NormalDistributionImpl
- Throws:
org.apache.commons.math.MathException
-
getInitialDomain
protected double getInitialDomain(double p)
- Overrides:
getInitialDomain
in classorg.apache.commons.math.distribution.NormalDistributionImpl
-
getDomainLowerBound
protected double getDomainLowerBound(double p)
- Overrides:
getDomainLowerBound
in classorg.apache.commons.math.distribution.NormalDistributionImpl
-
getDomainUpperBound
protected double getDomainUpperBound(double p)
- Overrides:
getDomainUpperBound
in classorg.apache.commons.math.distribution.NormalDistributionImpl
-
-