public class FDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF, rand
Constructor and Description |
---|
FDistribution() |
FDistribution(DblMatrix ndf,
DblMatrix ddf) |
FDistribution(DblMatrix ndf,
double ddf) |
FDistribution(double ndf,
DblMatrix ddf) |
FDistribution(double ndf,
double ddf) |
FDistribution(int ndf,
int ddf) |
Modifier and Type | Method and Description |
---|---|
DblMatrix |
cdf(DblMatrix F)
CDF of the F distribution.
|
DblMatrix |
criticalValue(DblMatrix cdfvals)
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 expected value of the distribution for the currently configured parameters.
|
DblMatrix |
pdf(DblMatrix X)
Returns the value of the density function at X.
|
DblMatrix |
random(int N)
Return N random draws from this distribution.
|
void |
setDDF(DblMatrix m) |
void |
setDDF(int m) |
void |
setNDF(DblMatrix m) |
void |
setNDF(int m) |
void |
setVariable(DblMatrix ff) |
DblMatrix |
variance()
Returns the variance of the distribution for the currently configured parameters.
|
assumeProbability, getAssumedProbability, getName, getParam, getParams, getValueAt, getValueToGet, getValueToMinimize, getVariableValue, hasParameter, parameterSet, replaceParams, setName, setParam, setValueToGet, setVariableValue
public FDistribution()
public FDistribution(double ndf, DblMatrix ddf)
public FDistribution(DblMatrix ndf, double ddf)
public FDistribution(double ndf, double ddf)
public FDistribution(int ndf, int ddf)
public void setVariable(DblMatrix ff)
public DblMatrix getVariable()
public DblMatrix criticalValue(DblMatrix cdfvals)
criticalValue
in interface InvCDF
criticalValue
in class ProbabilityDensity
public DblMatrix pdf(DblMatrix X)
pdf
in class ProbabilityDensity
public DblMatrix hasSupport(DblMatrix X)
ProbabilityDensity
hasSupport
in class ProbabilityDensity
public DblMatrix mean()
public DblMatrix mode()
public DblMatrix variance()
public void setNDF(int m)
public void setNDF(DblMatrix m)
public void setDDF(int m)
public void setDDF(DblMatrix m)
public DblMatrix random(int N)
random
in class ProbabilityDensity
Copyright © 2011, 2013. Daniel P. Dougherty