public class NonSymmetricalNormalDistribution extends Object implements Distribution
| Constructor and Description |
|---|
NonSymmetricalNormalDistribution(double mean,
double stdDown,
double stdUp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getCumulativeProbabilityAt(double x)
Returns the cumulative density function value at a given position.
|
Double |
getDescendingCumulativeProbabilityAt(double x)
Returns the cumulative density function value at a given position when
starting from the high values.
|
Double |
getMaxValueForProbability(double p)
The value after which the density function will be smaller than p.
|
double |
getMean()
Returns the mean of the distribution.
|
Double |
getMinValueForProbability(double p)
The value before which the density function will be smaller than p.
|
Double |
getProbabilityAt(double x)
Returns the density function value at a given position.
|
static NonSymmetricalNormalDistribution |
getRobustNonSymmetricalNormalDistribution(ArrayList<Double> input)
Returns the non-symmetrical distribution of the input list of double
calibrated on the median, 15.9% and 84.1% percentiles.
|
double |
getStdDown()
Returns the standard deviation to the left of the distribution.
|
double |
getStdUp()
Returns the standard deviation to the right of the distribution.
|
Double |
getValueAtCumulativeProbability(double p)
The value after which the cumulative density function will be smaller
than p.
|
Double |
getValueAtDescendingCumulativeProbability(double p)
The value after which the cumulative density function will be smaller
than p when starting from high values.
|
public NonSymmetricalNormalDistribution(double mean,
double stdDown,
double stdUp)
mean - the meanstdDown - the standard deviation on the left of the meanstdUp - the standard deviation on the right of the meanpublic double getStdUp()
public double getStdDown()
public double getMean()
public static NonSymmetricalNormalDistribution getRobustNonSymmetricalNormalDistribution(ArrayList<Double> input)
input - the input listpublic Double getProbabilityAt(double x)
DistributiongetProbabilityAt in interface Distributionx - the position of interestpublic Double getCumulativeProbabilityAt(double x) throws org.apache.commons.math.MathException
DistributiongetCumulativeProbabilityAt in interface Distributionx - the position of interestorg.apache.commons.math.MathExceptionpublic Double getMaxValueForProbability(double p)
DistributiongetMaxValueForProbability in interface Distributionp - the probability of interestpublic Double getMinValueForProbability(double p)
DistributiongetMinValueForProbability in interface Distributionp - the probability of interestpublic Double getValueAtCumulativeProbability(double p) throws org.apache.commons.math.MathException
DistributiongetValueAtCumulativeProbability in interface Distributionp - the probability of interestorg.apache.commons.math.MathExceptionpublic Double getDescendingCumulativeProbabilityAt(double x) throws org.apache.commons.math.MathException
DistributiongetDescendingCumulativeProbabilityAt in interface Distributionx - the position of interestorg.apache.commons.math.MathExceptionpublic Double getValueAtDescendingCumulativeProbability(double p) throws org.apache.commons.math.MathException
DistributiongetValueAtDescendingCumulativeProbability in interface Distributionp - the probability of interestorg.apache.commons.math.MathExceptionCopyright © 2014. All rights reserved.