public class PoissonDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF, rand
Constructor and Description |
---|
PoissonDistribution() |
PoissonDistribution(DblMatrix N,
DblMatrix p) |
Modifier and Type | Method and Description |
---|---|
DblMatrix |
cdf(DblMatrix X) |
DblMatrix |
criticalValue(DblMatrix cdfval) |
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 |
median()
Returns the median 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) |
DblMatrix |
random(int nn)
Return N random draws from this distribution.
|
void |
setLambda(DblMatrix m) |
void |
setLambda(double m) |
void |
setLambda(int m) |
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 DblMatrix mean()
public DblMatrix mode()
public DblMatrix median()
public DblMatrix variance()
public void setLambda(DblMatrix m)
public void setLambda(double m)
public void setLambda(int m)
public DblMatrix random(int nn)
ProbabilityDensity
random
in class ProbabilityDensity
public DblMatrix hasSupport(DblMatrix X)
ProbabilityDensity
hasSupport
in class ProbabilityDensity
public DblMatrix criticalValue(DblMatrix cdfval)
criticalValue
in interface InvCDF
criticalValue
in class ProbabilityDensity
public DblMatrix cdf(DblMatrix X)
cdf
in interface CDF
cdf
in class ProbabilityDensity
public DblMatrix pdf(DblMatrix X)
pdf
in class ProbabilityDensity
Copyright © 2011, 2013. Daniel P. Dougherty