public class DiscreteUniformDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF, rand| Constructor and Description |
|---|
DiscreteUniformDistribution() |
DiscreteUniformDistribution(DblMatrix n) |
DiscreteUniformDistribution(double n) |
DiscreteUniformDistribution(int n) |
| Modifier and Type | Method and Description |
|---|---|
DblMatrix |
cdf(DblMatrix xx)
CDF of the Normal distribution.
|
DblMatrix |
criticalValue(DblMatrix p)
For an input value C returns x such that P(X<=x) = C.
|
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)
Returns the value of the density function at X.
|
DblMatrix |
random(int n)
Return N random draws from this distribution.
|
void |
setN(DblMatrix a) |
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 DiscreteUniformDistribution()
public DiscreteUniformDistribution(DblMatrix n)
public DiscreteUniformDistribution(double n)
public DiscreteUniformDistribution(int n)
public DblMatrix random(int n)
random in class ProbabilityDensitypublic void setN(DblMatrix a)
public DblMatrix criticalValue(DblMatrix p)
criticalValue in interface InvCDFcriticalValue in class ProbabilityDensitypublic DblMatrix pdf(DblMatrix X)
pdf in class ProbabilityDensitypublic DblMatrix hasSupport(DblMatrix X)
ProbabilityDensityhasSupport in class ProbabilityDensitypublic DblMatrix mean()
public DblMatrix median()
public DblMatrix mode()
public DblMatrix variance()
Copyright © 2011, 2013. Daniel P. Dougherty