edu.uah.math.distributions
Class NormalDistribution

java.lang.Object
  |
  +--edu.uah.math.distributions.Distribution
        |
        +--edu.uah.math.distributions.NormalDistribution

public class NormalDistribution
extends Distribution

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

C

public static final double C
Constructor Detail

NormalDistribution

public NormalDistribution(double mu,
                          double sigma)
This general constructor creates a new normal distribution with specified parameter values


NormalDistribution

public NormalDistribution()
This default constructor creates a new standard normal distribution

Method Detail

setParameters

public void setParameters(double m,
                          double s)
This method sets the parameters


getDensity

public double getDensity(double x)
This method defines the getDensity function

Specified by:
getDensity in class Distribution

getMaxDensity

public double getMaxDensity()
This method returns the maximum value of the getDensity function

Overrides:
getMaxDensity in class Distribution

getMedian

public double getMedian()
This method returns the median

Overrides:
getMedian in class Distribution

getMean

public double getMean()
This method returns the mean

Overrides:
getMean in class Distribution

getVariance

public double getVariance()
This method returns the variance

Overrides:
getVariance in class Distribution

simulate

public double simulate()
This method simulates a value from the distribution

Overrides:
simulate in class Distribution

getMu

public double getMu()
This method returns the location parameter


setMu

public void setMu(double m)
This method sets the location parameter


getSigma

public double getSigma()
This method gets the scale parameter


setSigma

public void setSigma(double s)
This method sets the scale parameter


getCDF

public double getCDF(double x)
This method computes the cumulative distribution function

Overrides:
getCDF in class Distribution