public abstract class IntegerUnaryOpVertex extends NonProbabilisticInteger
Modifier and Type | Field and Description |
---|---|
protected IntegerVertex |
inputVertex |
ID_GENERATOR
Constructor and Description |
---|
IntegerUnaryOpVertex(int[] shape,
IntegerVertex inputVertex) |
Modifier and Type | Method and Description |
---|---|
IntegerTensor |
getDerivedValue() |
protected abstract IntegerTensor |
op(IntegerTensor a) |
IntegerTensor |
sample(KeanuRandom random) |
dLogPmf, isProbabilistic, logPmf, observe, updateValue
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, sampleUsingDefaultRandom, setAndCascade, setAndCascade, setParents, setParents, setValue, unobserve
protected final IntegerVertex inputVertex
public IntegerUnaryOpVertex(int[] shape, IntegerVertex inputVertex)
public IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomnesspublic IntegerTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticInteger
protected abstract IntegerTensor op(IntegerTensor a)