|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.prs.hybridbn.NormalDistribution
public class NormalDistribution
| Constructor Summary | |
|---|---|
NormalDistribution()
|
|
NormalDistribution(double mean,
double variance)
|
|
| Method Summary | |
|---|---|
double |
getCDF(double x)
Calculate P(X <= x) using the standard normal distribution P(Z <= z) where z = (x - mean)/(standard variance) and P(Z <= z) = P(X <= x). |
double |
getCDFUpperBound(double probability)
Calculate x using the standard normal distribution from the P(Z <= z) where z = (x - mean)/(standard variance) and P(Z <= z) = P(X <= x). |
double |
getMean()
Get the normal distribution mean. |
double |
getProbability(double x)
Returns the probability of a given value x for this normal distribution. |
double |
getProbability(double ini,
double end)
Calculate probability for an interval from CDF. |
double |
getVariance()
Get the normal distribution variance. |
static void |
main(String[] args)
|
void |
setMean(double mean)
Set the normal distribution mean. |
void |
setVariance(double variance)
Set the normal distribution variance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NormalDistribution()
public NormalDistribution(double mean,
double variance)
| Method Detail |
|---|
public double getCDFUpperBound(double probability)
probability - P(X <= x).
public double getCDF(double x)
x - The CDF upper bound.
public double getProbability(double ini,
double end)
ini - The interval initial value.end - The interval end value.
public double getProbability(double x)
x - The value we want to know the probability of.
public double getMean()
public void setMean(double mean)
mean - The normal distribution mean.public double getVariance()
public void setVariance(double variance)
variance - The normal distribution variance.public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||