Class NonSymmetricalNormalDistribution
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.math.statistics.distributions.NonSymmetricalNormalDistribution
- All Implemented Interfaces:
Distribution,Serializable
This class represents a non symmetrical normal distribution.
- Author:
- Marc Vaudel
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorNonSymmetricalNormalDistribution(double mean, double stdDown, double stdUp) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCumulativeProbabilityAt(double x) Returns the cumulative density function value at a given position.doublegetDescendingCumulativeProbabilityAt(double x) Returns the cumulative density function value at a given position when starting from the high values.doublegetMaxValueForProbability(double p) The value after which the density function will be smaller than p.doublegetMean()Returns the mean of the distribution.doublegetMinValueForProbability(double p) The value before which the density function will be smaller than p.doublegetProbabilityAt(double x) Returns the density function value at a given position.Returns the non-symmetrical distribution of the input list of double calibrated on the median, 15.9% and 84.1% percentiles.getRobustNonSymmetricalNormalDistributionFromSortedArray(double[] input) Returns the non-symmetrical distribution of the input array of double calibrated on the median, 15.9% and 84.1% percentiles.Returns the non-symmetrical distribution of the input list of double calibrated on the median, 15.9% and 84.1% percentiles.doublegetSmallestCumulativeProbabilityAt(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.doubleReturns the standard deviation to the left of the distribution.doublegetStdUp()Returns the standard deviation to the right of the distribution.doublegetValueAtCumulativeProbability(double p) The value after which the cumulative density function will be smaller than p.doubleThe value after which the cumulative density function will be smaller than p when starting from high values.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
NonSymmetricalNormalDistribution
public NonSymmetricalNormalDistribution()Empty default constructor -
NonSymmetricalNormalDistribution
public NonSymmetricalNormalDistribution(double mean, double stdDown, double stdUp) Constructor.- Parameters:
mean- the meanstdDown- the standard deviation on the left of the meanstdUp- the standard deviation on the right of the mean
-
-
Method Details
-
getStdUp
public double getStdUp()Returns the standard deviation to the right of the distribution.- Returns:
- the standard deviation to the right of the distribution
-
getStdDown
public double getStdDown()Returns the standard deviation to the left of the distribution.- Returns:
- the standard deviation to the left of the distribution
-
getMean
public double getMean()Returns the mean of the distribution.- Returns:
- the mean of the distribution
-
getRobustNonSymmetricalNormalDistribution
public 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.- Parameters:
input- the input list- Returns:
- the non symmetrical distribution calibrated on the median, 15.9% and 84.1% percentiles.
-
getRobustNonSymmetricalNormalDistributionFromSortedList
public static NonSymmetricalNormalDistribution getRobustNonSymmetricalNormalDistributionFromSortedList(ArrayList<Double> input) Returns the non-symmetrical distribution of the input list of double calibrated on the median, 15.9% and 84.1% percentiles.- Parameters:
input- the input list- Returns:
- the non symmetrical distribution calibrated on the median, 15.9% and 84.1% percentiles.
-
getRobustNonSymmetricalNormalDistributionFromSortedArray
public static NonSymmetricalNormalDistribution getRobustNonSymmetricalNormalDistributionFromSortedArray(double[] input) Returns the non-symmetrical distribution of the input array of double calibrated on the median, 15.9% and 84.1% percentiles.- Parameters:
input- the input array- Returns:
- the non symmetrical distribution calibrated on the median, 15.9% and 84.1% percentiles.
-
getProbabilityAt
public double getProbabilityAt(double x) Description copied from interface:DistributionReturns the density function value at a given position.- Specified by:
getProbabilityAtin interfaceDistribution- Parameters:
x- the position of interest- Returns:
- the value of the density function at the give position
-
getCumulativeProbabilityAt
public double getCumulativeProbabilityAt(double x) Description copied from interface:DistributionReturns the cumulative density function value at a given position.- Specified by:
getCumulativeProbabilityAtin interfaceDistribution- Parameters:
x- the position of interest- Returns:
- the value of the density function at the give position
-
getDescendingCumulativeProbabilityAt
public double getDescendingCumulativeProbabilityAt(double x) Description copied from interface:DistributionReturns the cumulative density function value at a given position when starting from the high values.- Specified by:
getDescendingCumulativeProbabilityAtin interfaceDistribution- Parameters:
x- the position of interest- Returns:
- the value of the density function at the give position
-
getSmallestCumulativeProbabilityAt
public double getSmallestCumulativeProbabilityAt(double x) Description copied from interface:DistributionReturns the cumulative density function value at a given position, starting from the low values if before the median, from the high otherwise.- Specified by:
getSmallestCumulativeProbabilityAtin interfaceDistribution- Parameters:
x- the position of interest- Returns:
- the value of the density function at the give position
-
getMaxValueForProbability
public double getMaxValueForProbability(double p) Description copied from interface:DistributionThe value after which the density function will be smaller than p.- Specified by:
getMaxValueForProbabilityin interfaceDistribution- Parameters:
p- the probability of interest- Returns:
- the value after which the density function will be smaller than p
-
getMinValueForProbability
public double getMinValueForProbability(double p) Description copied from interface:DistributionThe value before which the density function will be smaller than p.- Specified by:
getMinValueForProbabilityin interfaceDistribution- Parameters:
p- the probability of interest- Returns:
- the value before which the density function will be smaller than p
-
getValueAtCumulativeProbability
public double getValueAtCumulativeProbability(double p) Description copied from interface:DistributionThe value after which the cumulative density function will be smaller than p.- Specified by:
getValueAtCumulativeProbabilityin interfaceDistribution- Parameters:
p- the probability of interest- Returns:
- the value after which the cumulative density function will be smaller than p
-
getValueAtDescendingCumulativeProbability
public double getValueAtDescendingCumulativeProbability(double p) Description copied from interface:DistributionThe value after which the cumulative density function will be smaller than p when starting from high values.- Specified by:
getValueAtDescendingCumulativeProbabilityin interfaceDistribution- Parameters:
p- the probability of interest- Returns:
- the value after which the cumulative density function will be smaller than p
-