public class UniformDistribution extends ProbabilityDensity
GET_CDF, GET_ICDF, GET_PDF
Constructor and Description |
---|
UniformDistribution() |
UniformDistribution(DblMatrix low,
DblMatrix high) |
UniformDistribution(DblMatrix low,
double high) |
UniformDistribution(double low,
DblMatrix high) |
UniformDistribution(double low,
double high) |
UniformDistribution(int low,
int high) |
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 |
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 |
pdf(DblMatrix X)
Returns the value of the density function at X.
|
DblMatrix |
random(int N)
Return N random draws from this distribution.
|
DblMatrix |
random(int[] N)
Return matrix of the given size containing random draws from this distribution.
|
void |
setHigh(DblMatrix b) |
void |
setLow(DblMatrix a) |
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, setVariableValue
public UniformDistribution()
public UniformDistribution(double low, DblMatrix high)
public UniformDistribution(DblMatrix low, double high)
public UniformDistribution(double low, double high)
public UniformDistribution(int low, int high)
public DblMatrix random(int N)
random
in class ProbabilityDensity
public DblMatrix random(int[] N)
public void setLow(DblMatrix a)
public void setHigh(DblMatrix b)
public void setVariable(DblMatrix ff)
public DblMatrix getVariable()
public DblMatrix criticalValue(DblMatrix p)
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 variance()
Copyright © 2011, 2013. Daniel P. Dougherty