umontreal.iro.lecuyer.probdistmulti
Class BiNormalDonnellyDist
- java.lang.Object
-
- umontreal.iro.lecuyer.probdistmulti.ContinuousDistributionMulti
-
- umontreal.iro.lecuyer.probdistmulti.ContinuousDistribution2Dim
-
- umontreal.iro.lecuyer.probdistmulti.BiNormalDist
-
- umontreal.iro.lecuyer.probdistmulti.BiNormalDonnellyDist
-
public class BiNormalDonnellyDist extends BiNormalDist
Extends the classBiNormalDistfor the bivariate normal distribution using a translation of Donnelly's FORTRAN code.
-
-
Field Summary
-
Fields inherited from class umontreal.iro.lecuyer.probdistmulti.ContinuousDistribution2Dim
decPrec
-
-
Constructor Summary
Constructors Constructor and Description BiNormalDonnellyDist(double rho)Same asBiNormalDonnellyDist(rho, 15).BiNormalDonnellyDist(double mu1, double sigma1, double mu2, double sigma2, double rho)Same asBiNormalDonnellyDist(mu1, sigma1, mu2, sigma2, rho, 15).BiNormalDonnellyDist(double mu1, double sigma1, double mu2, double sigma2, double rho, int ndig)Constructor with parameters μ1 = mu1, μ2 = mu2, σ1 = sigma1, σ2 = sigma2, ρ = rho, and d = ndig digits of accuracy.BiNormalDonnellyDist(double rho, int ndig)Constructor with default parameters μ1 = μ2 = 0, σ1 = σ2 = 1, correlation ρ = rho, and d = ndig digits of accuracy (the absolute error is smaller than 10-d).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublebarF(double x, double y).static doublebarF(double x, double y, double rho)static doublebarF(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho)static doublebarF(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho, int ndig)Computes the upper binormal distribution function with parameters μ1 = mu1, μ2 = mu2, σ1 = sigma1, σ2 = sigma2, ρ = rho and ndig decimal digits of accuracy.static doublebarF(double x, double y, double rho, int ndig)Computes the upper standard binormal distribution function with parameters ρ = rho and ndig decimal digits of accuracy.doublecdf(double x, double y).static doublecdf(double x, double y, double rho)static doublecdf(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho)static doublecdf(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho, int ndig)Computes the binormal distribution function with parameters μ1 = mu1, μ2 = mu2, σ1 = sigma1, σ2 = sigma2, correlation ρ = rho and ndig decimal digits of accuracy.static doublecdf(double x, double y, double rho, int ndig)Computes the standard binormal distribution with the method described in, where ndig is the number of decimal digits of accuracy provided (ndig <= 15).-
Methods inherited from class umontreal.iro.lecuyer.probdistmulti.BiNormalDist
density, density, density, getCorrelation, getCorrelation, getCovariance, getCovariance, getMean, getMean, getMu1, getMu2, getSigma1, getSigma2
-
Methods inherited from class umontreal.iro.lecuyer.probdistmulti.ContinuousDistribution2Dim
cdf, density
-
Methods inherited from class umontreal.iro.lecuyer.probdistmulti.ContinuousDistributionMulti
getDimension
-
-
-
-
Constructor Detail
-
BiNormalDonnellyDist
public BiNormalDonnellyDist(double rho, int ndig)Constructor with default parameters μ1 = μ2 = 0, σ1 = σ2 = 1, correlation ρ = rho, and d = ndig digits of accuracy (the absolute error is smaller than 10-d). Restriction: d <= 15.
-
BiNormalDonnellyDist
public BiNormalDonnellyDist(double rho)
Same asBiNormalDonnellyDist(rho, 15).
-
BiNormalDonnellyDist
public BiNormalDonnellyDist(double mu1, double sigma1, double mu2, double sigma2, double rho, int ndig)Constructor with parameters μ1 = mu1, μ2 = mu2, σ1 = sigma1, σ2 = sigma2, ρ = rho, and d = ndig digits of accuracy. Restriction: d <= 15.
-
BiNormalDonnellyDist
public BiNormalDonnellyDist(double mu1, double sigma1, double mu2, double sigma2, double rho)Same asBiNormalDonnellyDist(mu1, sigma1, mu2, sigma2, rho, 15).
-
-
Method Detail
-
cdf
public static double cdf(double x, double y, double rho, int ndig)Computes the standard binormal distribution with the method described in, where ndig is the number of decimal digits of accuracy provided (ndig <= 15). The code was translated from the Fortran program written by T. G. Donnelly and copyrighted by the ACM (see http://www.acm.org/pubs/copyright_policy/#Notice). The absolute error is expected to be smaller than 10-d, where d = ndig.
-
cdf
public static double cdf(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho, int ndig)Computes the binormal distribution function with parameters μ1 = mu1, μ2 = mu2, σ1 = sigma1, σ2 = sigma2, correlation ρ = rho and ndig decimal digits of accuracy.
-
barF
public static double barF(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho, int ndig)Computes the upper binormal distribution function with parameters μ1 = mu1, μ2 = mu2, σ1 = sigma1, σ2 = sigma2, ρ = rho and ndig decimal digits of accuracy.
-
barF
public static double barF(double x, double y, double rho, int ndig)Computes the upper standard binormal distribution function with parameters ρ = rho and ndig decimal digits of accuracy.
-
cdf
public double cdf(double x, double y)Description copied from class:ContinuousDistribution2Dim. Computes the distribution function F(x, y):F(x, y) = P[X <= x, Y <= y] = ∫-∞xds∫-∞ydt f (s, t).- Overrides:
cdfin classBiNormalDist- Parameters:
x- value x at which the distribution function is evaluatedy- value y at which the distribution function is evaluated- Returns:
- distribution function evaluated at (x, y)
-
cdf
public static double cdf(double x, double y, double rho)
-
cdf
public static double cdf(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho)
-
barF
public double barF(double x, double y)Description copied from class:ContinuousDistribution2Dim. Computes the upper cumulative distribution function bar(F)(x, y):bar(F)(x, y) = P[X >= x, Y >= y] = ∫∞xds∫∞ydt f (s, t).- Overrides:
barFin classBiNormalDist- Parameters:
x- value x at which the upper distribution is evaluatedy- value y at which the upper distribution is evaluated- Returns:
- upper distribution function evaluated at (x, y)
-
barF
public static double barF(double mu1, double sigma1, double x, double mu2, double sigma2, double y, double rho)
-
barF
public static double barF(double x, double y, double rho)
-
-
DMelt 3.0 © DataMelt by jWork.ORG