|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractCondProbDistrib blog.distrib.UniformVector
public class UniformVector
The uniform distribution over n-dimensional column vectors coming from a specified n-dimensional "box".
Constructor Summary | |
---|---|
UniformVector(java.util.List params)
The constructor takes an even number of parameters. |
Method Summary | |
---|---|
double |
getLogProb(java.util.List args,
java.lang.Object value)
Returns the natural log of the value returned by getProb. |
double |
getProb(java.util.List args,
java.lang.Object value)
For a discrete distribution, returns the conditional probability of childValue given the argument values args . |
java.lang.Object |
sampleVal(java.util.List args,
Type childType)
Samples a value according to this CPD given the args
. |
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 UniformVector(java.util.List params)
java.lang.IllegalArgumentException
Method Detail |
---|
public double getProb(java.util.List args, java.lang.Object value)
CondProbDistrib
childValue
given the argument values args
.
For a continuous distribution, returns the conditional probability
density at childValue
.
public double getLogProb(java.util.List args, java.lang.Object value)
CondProbDistrib
getLogProb
in interface CondProbDistrib
getLogProb
in class AbstractCondProbDistrib
public java.lang.Object sampleVal(java.util.List args, Type childType)
CondProbDistrib
args
. The object returned should be of the specified type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |