|
||||||||||
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.StudentDistribution
public class StudentDistribution
This class models the student t distribution with a specifed degrees of freeom parameter.
Field Summary |
---|
Fields inherited from class edu.uah.math.distributions.Distribution |
---|
CONTINUOUS, DISCRETE, MIXED |
Constructor Summary | |
---|---|
StudentDistribution()
This default constructor creates a new student distribuion with 1 degree of freedom. |
|
StudentDistribution(int n)
This general constructor creates a new student distribution with a specified degrees of freedom. |
Method Summary | |
---|---|
double |
getCDF(double x)
This method computes the cumulative distribution function in terms of the beta CDF. |
double |
getDegrees()
This method returns the degrees of freedom parameter. |
double |
getDensity(double x)
This method computes the probability density function. |
double |
getMaxDensity()
This method returns the maximum value of the probability density function. |
double |
getMean()
This method returns the mean of the distribution. |
double |
getMoment(double a,
int n)
This method returns the moment a specified order about a specified point. |
double |
getMoment(int n)
This method returns the moment of order n about 0. |
double |
getVariance()
This method returns the variance of the distribution. |
void |
setDegrees(int n)
This method sets the degrees of freedom. |
double |
simulate()
This method simulates a value of 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 StudentDistribution(int n)
n
- the degrees of freedompublic StudentDistribution()
Method Detail |
---|
public void setDegrees(int n)
n
- the degrees of freedompublic double getDensity(double x)
getDensity
in class Distribution
x
- a number in the domain of the distribution
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 number in the domain of the distribution
betaCDF
public double getDegrees()
public 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 |