public static class LaplaceDistribution.CDF extends LaplaceDistribution implements SmoothCumulativeDistributionFunction, InvertibleCumulativeDistributionFunction<java.lang.Double>
LaplaceDistribution.CDF, LaplaceDistribution.MaximumLikelihoodEstimator, LaplaceDistribution.PDF, LaplaceDistribution.WeightedMaximumLikelihoodEstimatorDEFAULT_MEAN, DEFAULT_SCALE, mean, scale| Constructor and Description |
|---|
CDF()
Creates a new instance of LaplaceDistribution.CDF
|
CDF(double mean,
double scale)
Creates a new instance of LaplaceDistribution.CDF
|
CDF(LaplaceDistribution other)
Copy Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
differentiate(java.lang.Double input)
Differentiates the output with respect to the input
|
double |
evaluate(double input)
Produces a double output for the given double input
|
java.lang.Double |
evaluate(java.lang.Double input)
Evaluates the function on the given input and returns the output.
|
double |
evaluateAsDouble(java.lang.Double input)
Evaluates the scalar function as a double.
|
LaplaceDistribution.CDF |
getCDF()
Gets the CDF of a scalar distribution.
|
LaplaceDistribution.PDF |
getDerivative()
Gets the closed-form derivative of the function.
|
java.lang.Double |
inverse(double p)
Computes the inverse of the CDF for the give probability.
|
static double |
inverse(LaplaceDistribution laplace,
double p)
Computes the inverse of the CDF for the give probability.
|
clone, convertFromVector, convertToVector, getEstimator, getMaxSupport, getMean, getMeanAsDouble, getMinSupport, getProbabilityFunction, getScale, getVariance, sampleAsDouble, sampleInto, setMean, setScale, toStringsampleAsDoubles, sampleIntosample, sampleequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMean, getProbabilityFunction, sampleAsDouble, sampleAsDoubles, sampleIntogetMaxSupport, getMeanAsDouble, getMinSupport, getVariancesample, sample, sampleIntoclone, convertFromVector, convertToVectorpublic CDF()
public CDF(double mean,
double scale)
mean - Mean of the distributionscale - Scale factor of the distribution, must be greater than zero.public CDF(LaplaceDistribution other)
other - LaplaceDistribution to copypublic java.lang.Double evaluate(java.lang.Double input)
Evaluatorevaluate in interface Evaluator<java.lang.Double,java.lang.Double>evaluate in interface ScalarFunction<java.lang.Double>evaluate in interface UnivariateScalarFunctioninput - The input to evaluate.public double evaluateAsDouble(java.lang.Double input)
ScalarFunctionevaluateAsDouble in interface ScalarFunction<java.lang.Double>evaluateAsDouble in interface UnivariateScalarFunctioninput - The input value.public double evaluate(double input)
UnivariateScalarFunctionevaluate in interface UnivariateScalarFunctioninput - Input to the Evaluatorpublic java.lang.Double inverse(double p)
inverse in interface InvertibleCumulativeDistributionFunction<java.lang.Double>p - Probability to invert, must be [0,1].public static double inverse(LaplaceDistribution laplace, double p)
laplace - Laplace distribution to invert.p - Probability to invert, must be [0,1].public LaplaceDistribution.CDF getCDF()
UnivariateDistributiongetCDF in interface ClosedFormUnivariateDistribution<java.lang.Double>getCDF in interface SmoothUnivariateDistributiongetCDF in interface UnivariateDistribution<java.lang.Double>getCDF in class LaplaceDistributionpublic LaplaceDistribution.PDF getDerivative()
ClosedFormDifferentiableEvaluatorgetDerivative in interface ClosedFormDifferentiableEvaluator<java.lang.Double,java.lang.Double,java.lang.Double>getDerivative in interface SmoothCumulativeDistributionFunctionpublic java.lang.Double differentiate(java.lang.Double input)
DifferentiableEvaluatordifferentiate in interface DifferentiableEvaluator<java.lang.Double,java.lang.Double,java.lang.Double>input - Input about which to compute the derivative