public class ChiSqDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF| Constructor and Description |
|---|
ChiSqDistribution()
The default is Chi-Square distribution with 1 degree of freedom.
|
ChiSqDistribution(DblMatrix d) |
ChiSqDistribution(int d) |
| Modifier and Type | Method and Description |
|---|---|
DblMatrix |
cdf(DblMatrix xx)
Returns the CDF of the Chi-Squared distribution.
|
DblMatrix |
cdf(java.lang.Double x)
Returns the CDF of the Chi-Squared distribution.
|
DblMatrix |
cdf(int x)
Returns the CDF of the Chi-Squared distribution.
|
DblMatrix |
criticalValue(DblMatrix cdfval)
For an input value C returns x such that P(X<=x) = C.
|
DblMatrix |
getVariable() |
DblMatrix |
hasSupport(DblMatrix X)
Returns 1 if the density has the input value in its support set (domain)
and 0 otherwise.
|
DblMatrix |
mean()
Returns the expected value of the distribution for the currently configured parameters.
|
DblMatrix |
mode()
Returns the mode of the distribution for the currently configured parameters.
|
DblMatrix |
pdf(DblMatrix x)
Returns the value of the density function at X.
|
DblMatrix |
pdf(java.lang.Double x)
Returns the PDF of the Chi-Squared distribution.
|
DblMatrix |
pdf(int x)
Returns the PDF of the Chi-Squared distribution.
|
DblMatrix |
random(int N)
Return N random draws from this distribution.
|
void |
setDF(DblMatrix m) |
void |
setDF(int m) |
void |
setVariable(DblMatrix ff) |
DblMatrix |
variance()
Returns the expected value of the distribution for the currently configured parameters.
|
assumeProbability, getAssumedProbability, getName, getParam, getParams, getValueAt, getValueToGet, getValueToMinimize, getVariableValue, hasParameter, parameterSet, replaceParams, setName, setParam, setValueToGet, setVariableValuepublic ChiSqDistribution()
public ChiSqDistribution(DblMatrix d)
public ChiSqDistribution(int d)
public DblMatrix random(int N)
random in class ProbabilityDensitypublic void setDF(int m)
public void setDF(DblMatrix m)
public void setVariable(DblMatrix ff)
public DblMatrix getVariable()
public DblMatrix criticalValue(DblMatrix cdfval)
criticalValue in interface InvCDFcriticalValue in class ProbabilityDensitypublic DblMatrix pdf(java.lang.Double x)
public DblMatrix pdf(int x)
public DblMatrix pdf(DblMatrix x)
pdf in class ProbabilityDensitypublic DblMatrix hasSupport(DblMatrix X)
ProbabilityDensityhasSupport in class ProbabilityDensitypublic DblMatrix mean()
public DblMatrix mode()
public DblMatrix variance()
public DblMatrix cdf(DblMatrix xx)
cdf in interface CDFcdf in class ProbabilityDensitypublic DblMatrix cdf(java.lang.Double x)
public DblMatrix cdf(int x)
Copyright © 2011, 2013. Daniel P. Dougherty