public class BernoulliDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF, rand
Constructor and Description |
---|
BernoulliDistribution() |
BernoulliDistribution(DblMatrix p) |
Modifier and Type | Method and Description |
---|---|
DblMatrix |
cdf(DblMatrix X) |
DblMatrix |
criticalValue(DblMatrix cdfvals) |
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 median of the distribution for the currently configured parameters.
|
DblMatrix |
pdf(DblMatrix X) |
DblMatrix |
random(int nn)
Return N random draws from this distribution.
|
void |
setP(DblMatrix m) |
void |
setP(double 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 BernoulliDistribution()
public BernoulliDistribution(DblMatrix p)
public void setP(DblMatrix m)
public void setP(double m)
public DblMatrix random(int nn)
ProbabilityDensity
random
in class ProbabilityDensity
public DblMatrix variance()
public DblMatrix mean()
public DblMatrix median()
public DblMatrix mode()
public DblMatrix hasSupport(DblMatrix X)
ProbabilityDensity
hasSupport
in class ProbabilityDensity
public DblMatrix criticalValue(DblMatrix cdfvals)
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