public class NormalDistribution extends ExperimentObject implements Distribution
NO_KEY
Constructor and Description |
---|
NormalDistribution()
Empty default constructor
|
NormalDistribution(double mean,
double std)
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 |
getMinValueForProbability(double p)
The value before which the density function will be smaller than p.
|
static NormalDistribution |
getNormalDistribution(ArrayList<Double> input)
Returns the normal distribution corresponding to a given list of double
calibrated on mean and standard deviation.
|
double |
getProbabilityAt(double x)
Returns the density function value at a given position.
|
static NormalDistribution |
getRobustNormalDistribution(ArrayList<Double> input)
Returns the normal distribution corresponding to a given list of double
calibrated on median and 34.1% percentile to median distance
|
double |
getSmallestCumulativeProbabilityAt(double x)
Returns the cumulative density function value at a given position, starting from the low values if before the median, from the high otherwise.
|
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.
|
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
public NormalDistribution()
public NormalDistribution(double mean, double std)
mean
- the meanstd
- the standard deviationpublic static NormalDistribution getNormalDistribution(ArrayList<Double> input)
input
- the input as a list of doublepublic static NormalDistribution getRobustNormalDistribution(ArrayList<Double> input)
input
- the input as list of doublepublic double getProbabilityAt(double x)
Distribution
getProbabilityAt
in interface Distribution
x
- the position of interestpublic double getMaxValueForProbability(double p)
Distribution
getMaxValueForProbability
in interface Distribution
p
- the probability of interestpublic double getMinValueForProbability(double p)
Distribution
getMinValueForProbability
in interface Distribution
p
- the probability of interestpublic double getCumulativeProbabilityAt(double x)
Distribution
getCumulativeProbabilityAt
in interface Distribution
x
- the position of interestpublic double getValueAtCumulativeProbability(double p)
Distribution
getValueAtCumulativeProbability
in interface Distribution
p
- the probability of interestpublic double getDescendingCumulativeProbabilityAt(double x)
Distribution
getDescendingCumulativeProbabilityAt
in interface Distribution
x
- the position of interestpublic double getSmallestCumulativeProbabilityAt(double x)
Distribution
getSmallestCumulativeProbabilityAt
in interface Distribution
x
- the position of interestpublic double getValueAtDescendingCumulativeProbability(double p)
Distribution
getValueAtDescendingCumulativeProbability
in interface Distribution
p
- the probability of interestCopyright © 2021. All rights reserved.