Package com.opttek.optquest
Class COptQuestNormalDistribution
java.lang.Object
com.opttek.optquest.COptQuestNormalDistribution
- All Implemented Interfaces:
com.opttek.optquest.IProbabilityDistribution
public class COptQuestNormalDistribution
extends Object
implements com.opttek.optquest.IProbabilityDistribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecdf(double x) static doubleCDF(double x) Computes the CDF of the standard normal distribution at x (mean=0, std=1).static doubleCDF(double x, double mean, double sigma) Computes the cumulative distribution function (CDF) of the normal distribution at x.doublechaz(double x) static doubleCHAZ(double x) Computes the CHAZ of the standard normal distribution at x (mean=0, std=1).static doubleCHAZ(double x, double mean, double sigma) Computes the cumulative hazard function (CHAZ) of the normal distribution at x.doublehaz(double x) static doubleHAZ(double x) Computes the HAZ of the standard normal distribution at x (mean=0, std=1).static doubleHAZ(double x, double mean, double sigma) Computes the hazard function (HAZ) of the normal distribution at x.doublepdf(double x) static doublePDF(double x) Computes the PDF of the standard normal distribution at x (mean=0, std=1).static doublePDF(double x, double mean, double sigma) Computes the probability density function (PDF) of the normal distribution at x.doubleppf(double x) static doublePPF(double p) Computes the PPF of the standard normal distribution for probability p (mean=0, std=1).static doublePPF(double p, double mean, double sigma) Computes the percent point function (PPF, inverse CDF) of the normal distribution for probability p.doublesf(double x) static doubleSF(double x) Computes the SF of the standard normal distribution at x (mean=0, std=1).static doubleSF(double x, double mean, double sigma) Computes the survival function (SF, 1 - CDF) of the normal distribution at x.
-
Constructor Details
-
COptQuestNormalDistribution
public COptQuestNormalDistribution(double mean, double sigma)
-
-
Method Details
-
pdf
public double pdf(double x) - Specified by:
pdfin interfacecom.opttek.optquest.IProbabilityDistribution
-
cdf
public double cdf(double x) - Specified by:
cdfin interfacecom.opttek.optquest.IProbabilityDistribution
-
ppf
public double ppf(double x) - Specified by:
ppfin interfacecom.opttek.optquest.IProbabilityDistribution
-
sf
public double sf(double x) - Specified by:
sfin interfacecom.opttek.optquest.IProbabilityDistribution
-
chaz
public double chaz(double x) - Specified by:
chazin interfacecom.opttek.optquest.IProbabilityDistribution
-
haz
public double haz(double x) - Specified by:
hazin interfacecom.opttek.optquest.IProbabilityDistribution
-
CDF
public static double CDF(double x, double mean, double sigma) Computes the cumulative distribution function (CDF) of the normal distribution at x.- Parameters:
x- the value at which to evaluate the CDFmean- the mean (location parameter) of the distributionsigma- the standard deviation (sigma parameter) of the distribution- Returns:
- the CDF value
-
CDF
public static double CDF(double x) Computes the CDF of the standard normal distribution at x (mean=0, std=1).- Parameters:
x- the value at which to evaluate the CDF- Returns:
- the CDF value
-
CHAZ
public static double CHAZ(double x, double mean, double sigma) Computes the cumulative hazard function (CHAZ) of the normal distribution at x.- Parameters:
x- the value at which to evaluate the CHAZmean- the mean (location parameter) of the distributionsigma- the standard deviation (sigma parameter) of the distribution- Returns:
- the CHAZ value
-
CHAZ
public static double CHAZ(double x) Computes the CHAZ of the standard normal distribution at x (mean=0, std=1).- Parameters:
x- the value at which to evaluate the CHAZ- Returns:
- the CHAZ value
-
HAZ
public static double HAZ(double x, double mean, double sigma) Computes the hazard function (HAZ) of the normal distribution at x.- Parameters:
x- the value at which to evaluate the HAZmean- the mean (location parameter) of the distributionsigma- the standard deviation (sigma parameter) of the distribution- Returns:
- the HAZ value
-
HAZ
public static double HAZ(double x) Computes the HAZ of the standard normal distribution at x (mean=0, std=1).- Parameters:
x- the value at which to evaluate the HAZ- Returns:
- the HAZ value
-
PDF
public static double PDF(double x, double mean, double sigma) Computes the probability density function (PDF) of the normal distribution at x.- Parameters:
x- the value at which to evaluate the PDFmean- the mean (location parameter) of the distributionsigma- the standard deviation (sigma parameter) of the distribution- Returns:
- the PDF value
-
PDF
public static double PDF(double x) Computes the PDF of the standard normal distribution at x (mean=0, std=1).- Parameters:
x- the value at which to evaluate the PDF- Returns:
- the PDF value
-
PPF
public static double PPF(double p, double mean, double sigma) Computes the percent point function (PPF, inverse CDF) of the normal distribution for probability p.- Parameters:
p- the probability (0 ≤ p ≤ 1)mean- the mean (location parameter) of the distributionsigma- the standard deviation (sigma parameter) of the distribution- Returns:
- the PPF value
-
PPF
public static double PPF(double p) Computes the PPF of the standard normal distribution for probability p (mean=0, std=1).- Parameters:
p- the probability (0 ≤ p ≤ 1)- Returns:
- the PPF value
-
SF
public static double SF(double x, double mean, double sigma) Computes the survival function (SF, 1 - CDF) of the normal distribution at x.- Parameters:
x- the value at which to evaluate the SFmean- the mean (location parameter) of the distributionsigma- the standard deviation (sigma parameter) of the distribution- Returns:
- the SF value
-
SF
public static double SF(double x) Computes the SF of the standard normal distribution at x (mean=0, std=1).- Parameters:
x- the value at which to evaluate the SF- Returns:
- the SF value
-