public class BivariateNormalDistribution extends Object implements ProbabilityDistribution<double[]>
The implementation of the cdf is taken from "Better Approximations to Cumulative Normal Functions", West (link).
| Constructor and Description |
|---|
BivariateNormalDistribution() |
| Modifier and Type | Method and Description |
|---|---|
double |
getCDF(double[] x)
Calculates CDF.
|
double |
getInverseCDF(double[] p)
Given a probability, return the value that returns this cdf
|
double |
getPDF(double[] x)
Calculates PDF.
|
double |
nextRandom() |
public double getCDF(double[] x)
getCDF in interface ProbabilityDistribution<double[]>x - The parameters for the function, $(x, y, \rho$, with $-1 \geq \rho \geq 1$, not nullpublic double getInverseCDF(double[] p)
getInverseCDF in interface ProbabilityDistribution<double[]>p - The probability, not null. $0 \geq p \geq 1$UnsupportedOperationException - alwayspublic double getPDF(double[] x)
getPDF in interface ProbabilityDistribution<double[]>x - The parameters for the function, $(x, y, \rho$, with $-1 \geq \rho \geq 1$, not nullpublic double nextRandom()
nextRandom in interface ProbabilityDistribution<double[]>UnsupportedOperationException - alwaysCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.