public class StudentDistribution extends Distribution implements java.io.Serializable
CONTINUOUS, DISCRETE, MIXED| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDomain, getFailureRate, getMedian, getMGF, getPGF, getQuantile, getSD, getType, setDomain, setDomainpublic StudentDistribution(int n)
n - the degrees of freedompublic StudentDistribution()
public void setDegrees(int n)
n - the degrees of freedompublic double getDensity(double x)
getDensity in class Distributionx - a number in the domain of the distributionpublic double getMaxDensity()
getMaxDensity in class Distributionpublic double getMean()
getMean in class Distributionpublic double getVariance()
getVariance in class Distributionpublic double getMoment(int n)
getMoment in class Distributionn - the orderpublic double getMoment(double a,
int n)
getMoment in class Distributiona - the centern - the orderpublic double getCDF(double x)
getCDF in class Distributionx - a number in the domain of the distributionbetaCDFpublic double getDegrees()
public double simulate()
simulate in class Distributionpublic java.lang.String toString()
toString in class Distribution