|
||||||||||
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.PoissonDistribution
@ALDMetaInfo(export=ALLOWED) public class PoissonDistribution
Poisson distribution.
Field Summary | |
---|---|
protected double |
lambda
mean=variance of the distribution |
protected Random |
rand
|
Constructor Summary | |
---|---|
PoissonDistribution(double lambda,
Random rand)
Constructor for Poisson distribution with parameter lambda (=mean=variance) |
Method Summary | |
---|---|
Integer |
drawSample()
Generate a new sample from this density. |
Double |
getCondition()
Get conditional variable |
Double |
getCovariance()
|
Double |
getMean()
|
double |
log_p(Integer k)
Evaluate natural logarithm of p(X) at location x. log(P(X=x)) |
double |
p(Integer k)
Evaluate p(X) at location x. |
void |
setCondition(Double lambda)
Set the conditional variable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double lambda
protected Random rand
Constructor Detail |
---|
public PoissonDistribution(double lambda, Random rand)
lambda
- mean/variance of the distributionrand
- random generator for samplingMethod Detail |
---|
public double p(Integer k)
EvaluatableDistribution
p
in interface EvaluatableDistribution<Integer>
k
- realization of random variable X
public double log_p(Integer k)
LogEvaluatableDistribution
log_p
in interface LogEvaluatableDistribution<Integer>
k
- realization of random variable X
public Double getCovariance()
getCovariance
in interface SecondOrderCentralMoment<Double>
public Double getMean()
getMean
in interface FirstOrderMoment<Double>
public Double getCondition()
ConditionalDistribution
getCondition
in interface ConditionalDistribution<Double>
public void setCondition(Double lambda)
ConditionalDistribution
setCondition
in interface ConditionalDistribution<Double>
lambda
- conditional variablepublic Integer drawSample()
SamplingDistribution
drawSample
in interface SamplingDistribution<Integer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |