|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractCondProbDistrib blog.distrib.Poisson
public class Poisson
A Poisson distribution with mean and variance lambda. This is a distribution over non-negative integers. The probability of n is exp(-lambda) lambda^n / n!. This is a slightly modified version of Poisson.java in the common directory, tailored to implement the CondProbDistrib interface.
Constructor Summary | |
---|---|
Poisson(java.util.List params)
Creates a new Poisson distribution with the specifies lambda parameter. |
Method Summary | |
---|---|
double |
getLogProb(java.util.List args,
java.lang.Object value)
Returns the log probability of the integer n under this distribution. |
double |
getProb(java.util.List args,
java.lang.Object value)
Returns the probability of the integer n under this distribution. |
java.lang.Object |
sampleVal(java.util.List args,
Type childType)
Returns an integer sampled according to this distribution. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Poisson(java.util.List params)
Method Detail |
---|
public double getProb(java.util.List args, java.lang.Object value)
getProb
in interface CondProbDistrib
public double getLogProb(java.util.List args, java.lang.Object value)
getLogProb
in interface CondProbDistrib
getLogProb
in class AbstractCondProbDistrib
public java.lang.Object sampleVal(java.util.List args, Type childType)
http://www.columbia.edu/~ak2108/ta/summer2003/poisson1.c
sampleVal
in interface CondProbDistrib
public java.lang.String toString()
toString
in class AbstractCondProbDistrib
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |