public class NormalDistribution extends java.lang.Object implements Distribution
| Constructor and Description |
|---|
NormalDistribution(double mean,
double std)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getCumulativeProbabilityAt(double x)
Returns the cumulative density function value at a given position.
|
java.lang.Double |
getDescendingCumulativeProbabilityAt(double x)
Returns the cumulative density function value at a given position when
starting from the high values.
|
java.lang.Double |
getMaxValueForProbability(double p)
The value after which the density function will be smaller than p.
|
java.lang.Double |
getMinValueForProbability(double p)
The value before which the density function will be smaller than p.
|
static NormalDistribution |
getNormalDistribution(java.util.ArrayList<java.lang.Double> input)
Returns the normal distribution corresponding to a given list of double
calibrated on mean and standard deviation.
|
java.lang.Double |
getProbabilityAt(double x)
Returns the density function value at a given position.
|
static NormalDistribution |
getRobustNormalDistribution(java.util.ArrayList<java.lang.Double> input)
Returns the normal distribution corresponding to a given list of double
calibrated on median and 34.1% percentile to median distance
|
java.lang.Double |
getValueAtCumulativeProbability(double p)
The value after which the cumulative density function will be smaller
than p.
|
java.lang.Double |
getValueAtDescendingCumulativeProbability(double p)
The value after which the cumulative density function will be smaller
than p when starting from high values.
|
public NormalDistribution(double mean,
double std)
mean - the meanstd - the standard deviationpublic static NormalDistribution getNormalDistribution(java.util.ArrayList<java.lang.Double> input)
input - the input as a list of doublepublic static NormalDistribution getRobustNormalDistribution(java.util.ArrayList<java.lang.Double> input)
input - the input as list of doublepublic java.lang.Double getProbabilityAt(double x)
DistributiongetProbabilityAt in interface Distributionx - the position of interestpublic java.lang.Double getMaxValueForProbability(double p)
DistributiongetMaxValueForProbability in interface Distributionp - the probability of interestpublic java.lang.Double getMinValueForProbability(double p)
DistributiongetMinValueForProbability in interface Distributionp - the probability of interestpublic java.lang.Double getCumulativeProbabilityAt(double x)
throws org.apache.commons.math.MathException
DistributiongetCumulativeProbabilityAt in interface Distributionx - the position of interestorg.apache.commons.math.MathExceptionpublic java.lang.Double getValueAtCumulativeProbability(double p)
throws org.apache.commons.math.MathException
DistributiongetValueAtCumulativeProbability in interface Distributionp - the probability of interestorg.apache.commons.math.MathExceptionpublic java.lang.Double getDescendingCumulativeProbabilityAt(double x)
throws org.apache.commons.math.MathException
DistributiongetDescendingCumulativeProbabilityAt in interface Distributionx - the position of interestorg.apache.commons.math.MathExceptionpublic java.lang.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.