|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractCondProbDistrib blog.distrib.Exponential
public class Exponential
An Exponential distribution with parameter lambda over non-negative reals. The probability of x is lambda * e^(-lambda*x).
Constructor Summary | |
---|---|
Exponential(java.util.List params)
Creates a new Exponential with parameter lambda |
Method Summary | |
---|---|
double |
getLogProb(java.util.List args,
java.lang.Object value)
Returns the log of the probability of x under this distribution. |
double |
getProb(java.util.List args,
java.lang.Object value)
Returns the probability of x under this distribution |
java.lang.Object |
sampleVal(java.util.List args,
Type childType)
Returns a double sampled according to this distribution. |
Methods inherited from class blog.AbstractCondProbDistrib |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Exponential(java.util.List params)
Method Detail |
---|
public double getProb(java.util.List args, java.lang.Object value)
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |