|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.util.ProbabilityMath
public class ProbabilityMath
Mathematical functions for statistics. Most methods retrieved from http://www.math.csusb.edu/faculty/stanton/danby/danby_package.html.
| Constructor Summary | |
|---|---|
ProbabilityMath()
|
|
| Method Summary | |
|---|---|
static double |
combin(int N,
int k)
Calculate N choose k |
static double |
factorial(int n)
|
static double |
getNormalPDF(double x)
Returns the PDF of a given value x for a standard normal distribution with the mean = 0 and variance = 1. |
static double |
getNormalPDF(double x,
double mean,
double variance)
Returns the PDF of a given value x for a normal distribution with the given mean and variance. |
static double |
inverseNormal(double p)
inverseNormal |
static double |
loggamma(double a)
log gamma function |
static double |
normalCdf(double x)
normalCdf calculates the cumulative (standard) normal distribution function of x |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProbabilityMath()
| Method Detail |
|---|
public static double normalCdf(double x)
x - input value
public static double inverseNormal(double p)
p - argument of function
public static double factorial(int n)
public static double loggamma(double a)
x - is the value at which log gamma is to be returned
public static double combin(int N,
int k)
public static double getNormalPDF(double x,
double mean,
double variance)
x - The value we want to know the probability of.mean - The mean of this normal distribution.variance - The variance of this normal distribution.
public static double getNormalPDF(double x)
x - The value we want to know the probability of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||