public class FisherDistribution extends Distribution implements java.io.Serializable
CONTINUOUS, DISCRETE, MIXED
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDomain, getFailureRate, getMedian, getMGF, getPGF, getQuantile, getSD, getType, setDomain, setDomain
public FisherDistribution(int n, int d)
n
- the numerator degrees of freedomd
- the denominator degrees of freedompublic FisherDistribution()
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 numberpublic 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 orderpublic double getMoment(double a, int n)
getMoment
in class Distribution
a
- the centern
- the orderpublic double getCDF(double x)
getCDF
in class Distribution
x
- a real numberpublic 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