public class HypergeometricDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF| Constructor and Description |
|---|
HypergeometricDistribution() |
HypergeometricDistribution(DblMatrix m,
DblMatrix n,
DblMatrix s) |
| Modifier and Type | Method and Description |
|---|---|
DblMatrix |
cdf(DblMatrix xx)
CDF of the Hypergeometric distribution.
|
DblMatrix |
cdf(int xx)
CDF of the Hypergeometric 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 R)
Returns the value of the density function at X.
|
DblMatrix |
pdf(int r)
Returns the value of the density function at X.
|
DblMatrix |
random(int n)
Return N random draws from this distribution.
|
void |
setM(DblMatrix m) |
void |
setM(int m) |
void |
setN(DblMatrix m) |
void |
setN(int m) |
void |
setS(DblMatrix m) |
void |
setS(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 DblMatrix random(int n)
random in class ProbabilityDensitypublic void setM(int m)
public void setN(int m)
public void setS(int m)
public void setM(DblMatrix m)
public void setN(DblMatrix m)
public void setS(DblMatrix m)
public void setVariable(DblMatrix ff)
public DblMatrix getVariable()
public DblMatrix criticalValue(DblMatrix cdfval)
criticalValue in interface InvCDFcriticalValue in class ProbabilityDensitypublic DblMatrix pdf(int r)
public DblMatrix pdf(DblMatrix R)
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(int xx)
Copyright © 2011, 2013. Daniel P. Dougherty