|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.math.distributions.impl.UniformDistribution
@ALDMetaInfo(export=ALLOWED) public class UniformDistribution
A multivariate uniform distribution.
Field Summary | |
---|---|
protected int |
DOF
|
protected double[] |
llimits
|
protected double |
log_p
|
protected Jama.Matrix |
mean
|
protected double |
p
|
protected Random |
rand
|
protected double[] |
ulimits
|
protected double |
vol
|
Constructor Summary | |
---|---|
UniformDistribution(int DOF,
double[] lowerlimits,
double[] upperlimits,
Random rand)
Constructor for uniform distribution with hypercube shape in dimension DOF, given lower and upper limits in the corresponding dimension and a random generator for sampling. |
Method Summary | |
---|---|
Jama.Matrix |
drawSample()
Generate a new sample from this density. |
Jama.Matrix |
getMean()
|
double |
getVolume()
Get volume of the hypercube where p(x) > 0 |
double |
log_p(Jama.Matrix x)
Evaluate natural logarithm of p(X) at location x. log(P(X=x)) |
double |
p(Jama.Matrix x)
Evaluate p(X) at location x. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Random rand
protected Jama.Matrix mean
protected double[] llimits
protected double[] ulimits
protected double p
protected double log_p
protected double vol
protected int DOF
Constructor Detail |
---|
public UniformDistribution(int DOF, double[] lowerlimits, double[] upperlimits, Random rand)
DOF
- degrees of freedomlowerlimits
- lower limits for each dimensionupperlimits
- upper limits for each dimensionrand
- random generatorMethod Detail |
---|
public double p(Jama.Matrix x)
EvaluatableDistribution
p
in interface EvaluatableDistribution<Jama.Matrix>
x
- realization of random variable X
public double log_p(Jama.Matrix x)
LogEvaluatableDistribution
log_p
in interface LogEvaluatableDistribution<Jama.Matrix>
x
- realization of random variable X
public Jama.Matrix getMean()
getMean
in interface FirstOrderMoment<Jama.Matrix>
public Jama.Matrix drawSample()
SamplingDistribution
drawSample
in interface SamplingDistribution<Jama.Matrix>
public double getVolume()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |