public interface Probabilistic<T> extends Observable<T>, Samplable<T>
Modifier and Type | Method and Description |
---|---|
java.util.Map<Vertex,DoubleTensor> |
dLogProb(T atValue,
java.util.Set<? extends Vertex> withRespectTo)
The partial derivatives of the natural log prob.
|
default java.util.Map<Vertex,DoubleTensor> |
dLogProb(T atValue,
Vertex... withRespectTo) |
default java.util.Map<Vertex,DoubleTensor> |
dLogProbAtValue(java.util.Set<? extends Vertex> withRespectTo) |
default java.util.Map<Vertex,DoubleTensor> |
dLogProbAtValue(Vertex... withRespectTo) |
T |
getValue() |
static <V extends Vertex & Probabilistic> |
keepOnlyProbabilisticVertices(java.lang.Iterable<? extends Vertex> vertices) |
double |
logProb(T value)
This is the natural log of the probability at the supplied value.
|
default double |
logProbAtValue() |
getObservedValue, isObserved, observe, unobserve
double logProb(T value)
value
- The supplied value.java.util.Map<Vertex,DoubleTensor> dLogProb(T atValue, java.util.Set<? extends Vertex> withRespectTo)
atValue
- at a given valuewithRespectTo
- list of parents to differentiate with respect todefault java.util.Map<Vertex,DoubleTensor> dLogProb(T atValue, Vertex... withRespectTo)
T getValue()
default double logProbAtValue()
default java.util.Map<Vertex,DoubleTensor> dLogProbAtValue(java.util.Set<? extends Vertex> withRespectTo)
default java.util.Map<Vertex,DoubleTensor> dLogProbAtValue(Vertex... withRespectTo)
static <V extends Vertex & Probabilistic> java.util.List<V> keepOnlyProbabilisticVertices(java.lang.Iterable<? extends Vertex> vertices)