public class StudentTDistribution extends Object implements ProbabilityDistribution<Double>
GammaFunction).| Constructor and Description |
|---|
StudentTDistribution(double degFreedom) |
StudentTDistribution(double degFreedom,
RandomEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getCDF(Double x)
Returns the cumulative distribution function for a value
|
double |
getDegreesOfFreedom() |
double |
getInverseCDF(Double p)
Given a probability, return the value that returns this cdf
|
double |
getPDF(Double x)
Return the probability density function for a value
|
int |
hashCode() |
double |
nextRandom() |
public StudentTDistribution(double degFreedom)
degFreedom - The number of degrees of freedom, not negative or zeropublic StudentTDistribution(double degFreedom,
RandomEngine engine)
degFreedom - The number of degrees of freedom, not negative or zeroengine - A generator of uniform random numbers, not nullpublic double getCDF(Double x)
getCDF in interface ProbabilityDistribution<Double>x - The value, not nullpublic double getPDF(Double x)
getPDF in interface ProbabilityDistribution<Double>x - The value, not nullpublic double nextRandom()
nextRandom in interface ProbabilityDistribution<Double>public double getInverseCDF(Double p)
InverseIncompleteBetaFunction).getInverseCDF in interface ProbabilityDistribution<Double>p - The probability, not null. $0 \geq p \geq 1$public double getDegreesOfFreedom()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.