public class LaplaceDistribution extends Object implements ProbabilityDistribution<Double>
| Constructor and Description |
|---|
LaplaceDistribution(double mu,
double b)
Creates an instance.
|
LaplaceDistribution(double mu,
double b,
RandomEngine engine)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getB()
Gets the scale parameter.
|
double |
getCDF(Double x)
Returns the cumulative distribution function for a value
|
double |
getInverseCDF(Double p)
Given a probability, return the value that returns this cdf
|
double |
getMu()
Gets the location parameter.
|
double |
getPDF(Double x)
Return the probability density function for a value
|
int |
hashCode() |
double |
nextRandom() |
public LaplaceDistribution(double mu,
double b)
mu - The location parameterb - The scale parameter, greater than zeropublic LaplaceDistribution(double mu,
double b,
RandomEngine engine)
mu - The location parameterb - The scale parameter, greater than zeroengine - A uniform random number generator, not nullpublic double getCDF(Double x)
getCDF in interface ProbabilityDistribution<Double>x - The value, not nullpublic double getInverseCDF(Double p)
getInverseCDF in interface ProbabilityDistribution<Double>p - The probability, not null. $0 \geq p \geq 1$public double getPDF(Double x)
getPDF in interface ProbabilityDistribution<Double>x - The value, not nullpublic double nextRandom()
nextRandom in interface ProbabilityDistribution<Double>public double getMu()
public double getB()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.