|
|
com.kutsyy.util
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
private static double |
mvntrc_cup
variable used internaly by mvntrc |
private static double |
mvntrc_eps
constant used internaly by mvntrc |
private static double |
mvntrc_ept
variable used internaly by mvntrc |
private static double |
mvntrc_z
constant used internaly by mvntrc |
| Constructor Summary | |
Exp()
|
|
| Method Summary | |
private static double[] |
cor2to1(double[][] cor2)
transfor two dimentional array in to one dimentional, used internaly |
private double[][] |
cov1to2(double[] r)
transfor one dimentional array in to two dimentional, used internaly |
static double[] |
mvntrc(double[] a,
double[][] r)
Evaluate mean and covariance matrix of multivariate tuncated normal |
static double[] |
mvntrc(double[] a,
double[] b,
double[][] r)
Evaluate mean and covariance matrix of multivariate tuncated normal |
void |
mvntrc(double[] bounds,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
calulate mean and covariance matrix of truncated normal |
void |
mvntrc(double[] low,
double[] high,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
Description of the Method |
static double[] |
mvntrcMoment(double[] a,
double[][] r)
Evaluate first and second moments of multivariate tuncated normal Based on algorithms: Leppard, P. |
static double[] |
mvntrcMoment(double[] a,
double[] b,
double[][] r)
Evaluate first and second moments of multivariate tuncated normal |
private static double[] |
mvntrcMomentPrivate(double[] low,
double[][] R)
used internaly |
private static double[] |
mvntrcMomentPrivate(double[] a,
double[] b,
double[][] r)
used internaly |
void |
mvntrcMoments(double[] bounds,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
Description of the Method |
void |
mvntrcMoments(double[] low,
double[] high,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
Constructor for the mvntrc object |
static double |
ntrc(double low)
Description of the Method |
static double |
ntrc(double low,
double high)
Evaluate mean of trantated standart normal Creation date: (2/3/00 2:37:20 PM) |
static double |
ntrc(double low,
double high,
double sd)
Evaluate mean of trantated normal |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final double mvntrc_z
private static double mvntrc_cup
private static final double mvntrc_eps
private static double mvntrc_ept
| Constructor Detail |
public Exp()
| Method Detail |
public void mvntrcMoments(double[] low,
double[] high,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
throws IllegalArgumentException
low - lower limithigh - upper limitu - mean of normal distributionv - variance of normal distributioneps - tolerancetmean - mean of truncated normal (output)tvar - covariance matrix of truncated
normal (output)IllegalArgumentException - Description of ExceptionmvntrcMoments(double[], double[],
double[][], double, double[], double[][])
public void mvntrcMoments(double[] bounds,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
throws IllegalArgumentException
bounds - lower limitu - mean of original normal distributionv - covariance matrix of original normal
distributioneps - tolerancetmean - mean of truncated normal (output)tvar - covariance matrix of truncated
normal (output)IllegalArgumentException - Description of Exception
public void mvntrc(double[] bounds,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
throws IllegalArgumentException
bounds - lower limitu - mean of original normal distributionv - covariance matrix of original normal
distributioneps - tolerancetmean - mean of truncated normal (output)tvar - covariance matrix of truncated
normal (output)IllegalArgumentException - thows if bounds, u of v are not the
same lenth/dimentionsmvntrcMoments(double[], double[],
double[][], double, double[], double[][])
public void mvntrc(double[] low,
double[] high,
double[] u,
double[][] v,
double eps,
double[] tmean,
double[][] tvar)
throws IllegalArgumentException
low - lower limithigh - upper limitu - mean of normal distributionv - variance of normal distributioneps - tolerancetmean - mean of truncated normal (output)tvar - covariance matrix of truncated
normal (output)IllegalArgumentException - Description of ExceptionmvntrcMoments(double[], double[],
double[][], double, double[], double[][])private double[][] cov1to2(double[] r)
r - one dimentional array
public static double ntrc(double low,
double high)
low - lower trancationhigh - upper trancation
public static double ntrc(double low,
double high,
double sd)
low - lower trancationhigh - upper trancationsd - standart diviationpublic static double ntrc(double low)
low - Description of Parameter
public static double[] mvntrc(double[] a,
double[][] r)
a - lower truncation limitr - covariance matrix or original normal distribution, before
truncationmvntrcMoments(double[], double[], double[][], double,
double[], double[][])
public static double[] mvntrc(double[] a,
double[] b,
double[][] r)
a - lower truncation limitb - upper truncation limitr - covariance matrix or original normal distribution, before
truncationmvntrcMoments(double[], double[], double[][], double,
double[], double[][])
public static double[] mvntrcMoment(double[] a,
double[][] r)
a - lower truncation limitr - covariance matrix or original normal distribution, before
truncationmvntrcMoments(double[], double[], double[][], double,
double[], double[][])
public static double[] mvntrcMoment(double[] a,
double[] b,
double[][] r)
a - lower truncation limitb - upper truncation limitr - covariance matrix or original normal distribution, before
truncationmvntrcMoments(double[], double[], double[][], double,
double[], double[][])private static final double[] cor2to1(double[][] cor2)
cor2 - 2 dimentional array
private static double[] mvntrcMomentPrivate(double[] low,
double[][] R)
low - Description of ParameterR - Description of Parameter
private static double[] mvntrcMomentPrivate(double[] a,
double[] b,
double[][] r)
a - double[]b - double[]r - double[][]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||