public abstract class NonProbabilisticInteger extends IntegerVertex
ID_GENERATOR
Constructor and Description |
---|
NonProbabilisticInteger() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogPmf(IntegerTensor value) |
abstract IntegerTensor |
getDerivedValue() |
boolean |
isProbabilistic() |
double |
logPmf(IntegerTensor value) |
void |
observe(IntegerTensor value)
Observing non-probabilistic values of this type causes the probability
of the graph to flatten to 0 in all places that doesn't exactly match
the observation.
|
IntegerTensor |
updateValue()
This causes a non-probabilistic vertex to recalculate it's value based off it's
parent's current values.
|
abs, div, div, divideBy, divideBy, divideBy, dLogPmf, dLogPmf, lambda, lambda, logPmf, logPmf, minus, minus, minus, multiply, multiply, multiply, observe, observe, plus, plus, plus, setAndCascade, setAndCascade, setAndCascade, setAndCascade, setValue, setValue, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, exploreSetting, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observeOwnValue, sample, sampleUsingDefaultRandom, setAndCascade, setAndCascade, setParents, setParents, setValue, unobserve
public void observe(IntegerTensor value)
observe
in class Vertex<IntegerTensor>
value
- the value to be observedpublic double logPmf(IntegerTensor value)
logPmf
in class DiscreteVertex<IntegerTensor>
public java.util.Map<java.lang.Long,DoubleTensor> dLogPmf(IntegerTensor value)
dLogPmf
in class DiscreteVertex<IntegerTensor>
public boolean isProbabilistic()
isProbabilistic
in class Vertex<IntegerTensor>
public IntegerTensor updateValue()
Vertex
updateValue
in class Vertex<IntegerTensor>
public abstract IntegerTensor getDerivedValue()