|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.uah.math.distributions.Distribution
|
+--edu.uah.math.distributions.NormalDistribution
This class encapsulates the normal distribution with specified parameters
| Field Summary | |
static double |
C
|
| Fields inherited from class edu.uah.math.distributions.Distribution |
CONTINUOUS, DISCRETE, MIXED |
| Constructor Summary | |
NormalDistribution()
This default constructor creates a new standard normal distribution |
|
NormalDistribution(double mu,
double sigma)
This general constructor creates a new normal distribution with specified parameter values |
|
| Method Summary | |
double |
getCDF(double x)
This method computes the cumulative distribution function |
double |
getDensity(double x)
This method defines the getDensity function |
double |
getMaxDensity()
This method returns the maximum value of the getDensity function |
double |
getMean()
This method returns the mean |
double |
getMedian()
This method returns the median |
double |
getMu()
This method returns the location parameter |
double |
getSigma()
This method gets the scale parameter |
double |
getVariance()
This method returns the variance |
void |
setMu(double m)
This method sets the location parameter |
void |
setParameters(double m,
double s)
This method sets the parameters |
void |
setSigma(double s)
This method sets the scale parameter |
double |
simulate()
This method simulates a value from the distribution |
| Methods inherited from class edu.uah.math.distributions.Distribution |
betaCDF, comb, factorial, gamma, gammaCDF, getDomain, getFailureRate, getQuantile, getSD, getType, logGamma, perm, setParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final double C
| Constructor Detail |
public NormalDistribution(double mu,
double sigma)
public NormalDistribution()
| Method Detail |
public void setParameters(double m,
double s)
public double getDensity(double x)
getDensity in class Distributionpublic double getMaxDensity()
getMaxDensity in class Distributionpublic double getMedian()
getMedian in class Distributionpublic double getMean()
getMean in class Distributionpublic double getVariance()
getVariance in class Distributionpublic double simulate()
simulate in class Distributionpublic double getMu()
public void setMu(double m)
public double getSigma()
public void setSigma(double s)
public double getCDF(double x)
getCDF in class Distribution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||