Class 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 Detail

      • LognormalDistributionImpl

        public LognormalDistributionImpl​(double mu,
                                         double sigma)
        Create a normal distribution using the given mean and standard deviation.
        Parameters:
        mean - mean for this distribution
        sd - standard deviation for this distribution
    • Method Detail

      • cumulativeProbability

        public double cumulativeProbability​(double x)
                                     throws org.apache.commons.math.MathException
        Specified by:
        cumulativeProbability in interface org.apache.commons.math.distribution.Distribution
        Overrides:
        cumulativeProbability in class org.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 interface org.apache.commons.math.distribution.Distribution
        Overrides:
        cumulativeProbability in class org.apache.commons.math.distribution.AbstractDistribution
        Throws:
        org.apache.commons.math.MathException
      • getMean

        public double getMean()
        Specified by:
        getMean in interface org.apache.commons.math.distribution.NormalDistribution
        Overrides:
        getMean in class org.apache.commons.math.distribution.NormalDistributionImpl
      • density

        public double density​(double x)
        Overrides:
        density in class org.apache.commons.math.distribution.NormalDistributionImpl
      • getStandardDeviation

        public double getStandardDeviation()
        Specified by:
        getStandardDeviation in interface org.apache.commons.math.distribution.NormalDistribution
        Overrides:
        getStandardDeviation in class org.apache.commons.math.distribution.NormalDistributionImpl
      • inverseCumulativeProbability

        public double inverseCumulativeProbability​(double p)
                                            throws org.apache.commons.math.MathException
        Specified by:
        inverseCumulativeProbability in interface org.apache.commons.math.distribution.ContinuousDistribution
        Overrides:
        inverseCumulativeProbability in class org.apache.commons.math.distribution.NormalDistributionImpl
        Throws:
        org.apache.commons.math.MathException
      • getInitialDomain

        protected double getInitialDomain​(double p)
        Overrides:
        getInitialDomain in class org.apache.commons.math.distribution.NormalDistributionImpl
      • getDomainLowerBound

        protected double getDomainLowerBound​(double p)
        Overrides:
        getDomainLowerBound in class org.apache.commons.math.distribution.NormalDistributionImpl
      • getDomainUpperBound

        protected double getDomainUpperBound​(double p)
        Overrides:
        getDomainUpperBound in class org.apache.commons.math.distribution.NormalDistributionImpl