public final class ChiSquaredDistribution extends java.lang.Object implements Distribution
Distribution.Type| Constructor and Description |
|---|
ChiSquaredDistribution(int degreesOfFreedom,
double meanValue)
Constructor for univariate Chi-squared distribution.
|
ChiSquaredDistribution(int degreesOfFreedom,
Matrix meanValues)
Constructor for multivariate Chi-squared distribution (Wishart distribution).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDegreesOfFreedom()
This method returns the degrees of freedom.
|
Matrix |
getMean()
This method returns the first central moment, i.e.
|
Matrix |
getRandomRealization()
This method draws a random realization from the distribution.
|
Distribution.Type |
getType()
This method returns the type of the distribution.
|
Matrix |
getVariance()
This method returns the second central moment, i.e.
|
boolean |
isMultivariate()
This method returns true if the GaussianFunction instance is multivariate.
|
boolean |
isParametric()
This method returns true if the distribution is parametric or false otherwise.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUnivariatepublic ChiSquaredDistribution(int degreesOfFreedom,
double meanValue)
degreesOfFreedom - the degrees of freedommeanValue - the mean valuepublic ChiSquaredDistribution(int degreesOfFreedom,
Matrix meanValues)
degreesOfFreedom - the degrees of freedommeanValues - the mean valuepublic int getDegreesOfFreedom()
public Matrix getMean()
CentralMomentsGettablegetMean in interface CentralMomentsGettablepublic Matrix getVariance()
CentralMomentsGettablegetVariance in interface CentralMomentsGettablepublic boolean isParametric()
DistributionisParametric in interface Distributionpublic boolean isMultivariate()
DistributionisMultivariate in interface Distributionpublic Distribution.Type getType()
DistributiongetType in interface Distributionpublic Matrix getRandomRealization()
DistributiongetRandomRealization in interface Distribution