|
||||||||||
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.FisherDistribution
public class FisherDistribution
This class models the Fisher F distribution with a spcified number of degrees of freedom in the numerator and denominator.
Field Summary |
---|
Fields inherited from class edu.uah.math.distributions.Distribution |
---|
CONTINUOUS, DISCRETE, MIXED |
Constructor Summary | |
---|---|
FisherDistribution()
This default constructor creates a new Fisher distribution with 5 degrees of freedom in numerator and denominator. |
|
FisherDistribution(int n,
int d)
This general constructor creates a new Fisher distribution with a specified number of degrees of freedom in the numerator and denominator. |
Method Summary | |
---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function in terms of the beta CDF. |
double |
getDenominatorDegrees()
This method gets the denominator degrees of freedom. |
double |
getDensity(double x)
This method computes the probability denisty function. |
double |
getMaxDensity()
This method computes the maximum value of the density function. |
double |
getMean()
This method returns the mean of the probability distribution. |
double |
getMoment(double a,
int n)
This method returns the moment of a specified order about a specified point. |
double |
getMoment(int n)
This method returns the moment of a specified order. |
double |
getNumeratorDegrees()
This method returns the numerator degrees of freedom. |
double |
getVariance()
This method returns the variance of the distribution. |
void |
setDenominatorDegrees(int d)
This method sets the denominator degrees of freedom. |
void |
setNumeratorDegrees(int n)
This method sets the numerator degrees of freedom. |
void |
setParameters(int n,
int d)
This method sets the parameters, the degrees of freedom in the numerator and denominator. |
double |
simulate()
This method simulates a value from the distribution. |
java.lang.String |
toString()
This method returns a string that gives the name of the distribution and the values of the parameters. |
Methods inherited from class edu.uah.math.distributions.Distribution |
---|
getDomain, getFailureRate, getMedian, getMGF, getPGF, getQuantile, getSD, getType, setDomain, setDomain |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FisherDistribution(int n, int d)
n
- the numerator degrees of freedomd
- the denominator degrees of freedompublic FisherDistribution()
Method Detail |
---|
public void setParameters(int n, int d)
n
- the numerator degrees of freedomd
- the denominator degrees of freedompublic double getDensity(double x)
getDensity
in class Distribution
x
- a real number
public double getMaxDensity()
getMaxDensity
in class Distribution
public double getMean()
getMean
in class Distribution
public double getVariance()
getVariance
in class Distribution
public double getMoment(int n)
getMoment
in class Distribution
n
- the order
public double getMoment(double a, int n)
getMoment
in class Distribution
a
- the centern
- the order
public double getCDF(double x)
getCDF
in class Distribution
x
- a real number
public double getNumeratorDegrees()
public void setNumeratorDegrees(int n)
n
- the numerator degrees of freedompublic double getDenominatorDegrees()
public void setDenominatorDegrees(int d)
d
- the denominator degrees of freedompublic double simulate()
simulate
in class Distribution
public java.lang.String toString()
toString
in class Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |