public class Flip extends ProbabilisticBool
FALSE, TRUE
idGenerator
Constructor and Description |
---|
Flip(double probTrue) |
Flip(double probTrue,
java.util.Random random) |
Flip(Vertex<java.lang.Double> probTrue,
java.util.Random random) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Double> |
dDensityAtValue()
This returns the derivative of the density function with respect to
any dependent vertices.
|
double |
density(java.lang.Boolean value)
This is the value of the probability density at the supplied value.
|
Vertex<java.lang.Double> |
getProbTrue() |
java.lang.Boolean |
sample() |
isProbabilistic, lazyEval, updateValue
and, If, or
addChild, addParent, addParents, densityAtValue, dlnDensityAtValue, equals, getChildren, getConnectedGraph, getId, getParents, getValue, hashCode, isObserved, logDensity, logDensityAtValue, observe, observeOwnValue, setAndCascade, setParents, setParents, setValue, unobserve, updateChildren
public Flip(Vertex<java.lang.Double> probTrue, java.util.Random random)
public Flip(double probTrue, java.util.Random random)
public Flip(double probTrue)
public Vertex<java.lang.Double> getProbTrue()
public double density(java.lang.Boolean value)
Vertex
public java.util.Map<java.lang.String,java.lang.Double> dDensityAtValue()
Vertex
dDensityAtValue
in class Vertex<java.lang.Boolean>