|
|
com.kutsyy.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
private static double |
bvnor_eps
default tolerance used by bvnor |
private static double |
cup
variable used internaly |
private static double |
DMV_CUT
variable used by dmv |
private static double |
mvnor_cup
variable used by mvnor |
private static double |
mvnor_eplos
variable used by mvnor |
private static double |
mvnor_eps
default tolerance for mvnor |
private static double |
mvnor_epsmin
default minimum tolerance for mvnor |
private static double |
mvnor_ept
variable used by mvnor |
private static double |
mvnor_z
variable used by mvnor |
private static double |
mvnor_z_cup
constant used by mvnor |
private static double |
ranmvn_eps
default tolerance for ranmvn |
private static double |
ranmvn_error
variable used by ranmvn |
private static double |
ranmvn_releps
default relevant tolerance for ranmvn |
private static double |
ranmvn_value
variable used by ranmvn |
private static double |
ranmvn_varest
variable used by ranmvn |
private static Random |
rnd
Internal random number generator |
| Constructor Summary | |
Cdf()
|
|
| Method Summary | |
static double |
bvnor(double[] x,
double[][] sigma)
A function for computing bivariate normal probabilities. |
static double |
bvnor(double[] lower,
double[] upper,
double rho)
A function for computing bivariate normal probabilities. |
static double |
bvnor(double[] lower,
double[] upper,
double[][] sigma)
A function for computing bivariate normal probabilities. |
static double |
bvnor(double[] lower,
double[] upper,
int[] infin,
double cor)
A function for computing bivariate normal probabilities. |
static double |
bvnor(double sh,
double sk,
double r)
A function for computing bivariate normal probabilities. |
private static double |
dmv_solve(double[] h,
double[][] r)
Internal function used by #dmv(double[], double[][]) |
private static double |
dmv_tree(double[] h,
double[][] r)
Internal function used by #dmv(double[], double[][]) |
static double |
dmv(double[] high,
double[][] cov)
Compute Cdf of Miltivariate normal Based on algorithms by Zvi Drezner Calofornia State University, Fullerton "Computation of the Multivariate Normal Integral" ACM Transaction on Mathematical Software, Vol 18, No 4, December 1992, Pages 470-480 |
static double |
dmv(double[] low,
double[] high,
double[][] cov)
Compute Multivariate normal integral |
static double |
mvnor(double[] low,
double[] high,
double[][] sig)
Compute multivariate normal distribution function and the probability that a multivariate normal vector falls in a rectangle in n-space routine called dmv(double[], double[], double[][]) if the result is less than (1e-10/low.length), the routine will call ranmvn(double[], double[], double[]) Note: the cut point above seems to work fine, in order to get at most 1% of relative error |
static double |
nor(double x)
Compute Cdf of standart normal |
static double |
nor(double x,
double mu,
double sd)
Compute Cdf of normal |
private static double |
ranmvn_main(double[] low,
double[] high,
double[][] sig)
main function for #ranmvn(double[], double[], double[][]) |
private static double |
ranmvn_mvnfnc(double[] w,
double e0,
double d0,
double[] lower,
double[] upper,
double[][] cov)
Internal function for #ranmvn(double[], double[], double[][]) |
private static void |
ranmvn_rcrude(int ndim,
int maxpts,
int ir,
double e0,
double d0,
double[] lower,
double[] upper,
double[][] cov)
Internal function for #ranmvn(double[], double[], double[][]) |
private static double |
ranmvn_solve(double[] lower,
double[] upper,
double[][] c,
double releps)
#ranmvn(double[], double[], double[][]) |
static double |
ranmvn(double[] low,
double[] high,
double[][] sig)
Compute Cdf of Miltivariate normal Based on algorithms by Alan Genz http://www.sci.wsu.edu/math/faculty/genz/homepage Department of Mathematics, Washington State University, Pullman, WA 99164-3113, Email : alangenz@wsu.edu "Numerical Computation of Multivariate Normal Probabilities"" |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final double mvnor_epsmin
private static final double mvnor_eps
private static final double ranmvn_eps
private static final double ranmvn_releps
private static double mvnor_ept
private static double mvnor_eplos
private static double mvnor_z
private static double cup
private static double mvnor_cup
private static final double mvnor_z_cup
private static final double bvnor_eps
private static Random rnd
private static double ranmvn_error
private static double ranmvn_value
private static double ranmvn_varest
private static final double DMV_CUT
| Constructor Detail |
public Cdf()
| Method Detail |
public static final double bvnor(double[] x,
double[][] sigma)
x - upper limitsigma - covariate matrixbvnor(double,double,double)
public static final double bvnor(double[] lower,
double[] upper,
double[][] sigma)
lower - lower limits of integrationsupper - upper limits of integrationsigma - covariance matrixbvnor(double,double,double)
public static final double bvnor(double[] lower,
double[] upper,
int[] infin,
double cor)
lower - lower limits of integrationsupper - upper limits of integrationinfin - integration limits, provided in order to work with
Mvndstpackcor - correlation coeffitientbvnor(double,double,double)
public static final double bvnor(double[] lower,
double[] upper,
double rho)
lower - lower limit of integrationupper - upper limit of integrationrho - correlation coeffitientbvnor(double,double,double)
public static final double bvnor(double sh,
double sk,
double r)
sh - integration limitsk - integration limitr - correlation coefficient
public static final double dmv(double[] high,
double[][] cov)
high - upper limits of integrationcov - covariate matrix
public static final double dmv(double[] low,
double[] high,
double[][] cov)
low - lower limit of integrationhigh - upper limit of integrationcov - covariance matrixdmv(double[],double[][])
public static final double mvnor(double[] low,
double[] high,
double[][] sig)
low - Low limit of integrationhigh - Upper limits of integrationsig - Covariate matrixdmv(double[], double[][]),
ranmvn(double[], double[], double[][])public static final double nor(double x)
x - upper limit
public static final double nor(double x,
double mu,
double sd)
x - upper limitmu - meansd - stand diviationnor(double)
public static final double ranmvn(double[] low,
double[] high,
double[][] sig)
low - lower limit of integrationhigh - upper limits of integrationsig - covariate matrix
private static final double dmv_solve(double[] h,
double[][] r)
h - double[]r - double[][]dmv(double[], double[][])
private static double dmv_tree(double[] h,
double[][] r)
h - double[]r - double[][]dmv(double[], double[][])
private static final double ranmvn_main(double[] low,
double[] high,
double[][] sig)
sig - double[]low - Description of Parameterhigh - Description of Parameterranmvn(double[], double[], double[][])
private static final double ranmvn_mvnfnc(double[] w,
double e0,
double d0,
double[] lower,
double[] upper,
double[][] cov)
e0 - doubled0 - doublelower - double[]upper - double[]cov - double[][]w - Description of Parameter
private static final void ranmvn_rcrude(int ndim,
int maxpts,
int ir,
double e0,
double d0,
double[] lower,
double[] upper,
double[][] cov)
ndim - intmaxpts - intir - inte0 - doubled0 - doublelower - double[]upper - double[]cov - double[][]ranmvn(double[], double[], double[][])
private static final double ranmvn_solve(double[] lower,
double[] upper,
double[][] c,
double releps)
lower - upper - c - releps - ranmvn(double[], double[], double[][])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||