public class IntegerUnaryOpLambda<IN> extends NonProbabilisticInteger
Modifier and Type | Field and Description |
---|---|
protected Vertex<IN> |
inputVertex |
protected java.util.function.Function<IN,IntegerTensor> |
op |
ID_GENERATOR
Constructor and Description |
---|
IntegerUnaryOpLambda(int[] shape,
Vertex<IN> inputVertex,
java.util.function.Function<IN,IntegerTensor> op) |
Modifier and Type | Method and Description |
---|---|
IntegerTensor |
getDerivedValue() |
IntegerTensor |
sample(KeanuRandom random) |
dLogPmf, isProbabilistic, logPmf, observe, updateValue
abs, div, div, divideBy, divideBy, divideBy, dLogPmf, dLogPmf, getValue, lambda, lambda, logPmf, logPmf, minus, minus, minus, multiply, multiply, multiply, observe, observe, plus, plus, plus, setAndCascade, setAndCascade, setValue, setValue, sum, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
protected final java.util.function.Function<IN,IntegerTensor> op
public IntegerUnaryOpLambda(int[] shape, Vertex<IN> inputVertex, java.util.function.Function<IN,IntegerTensor> op)
public IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomnesspublic IntegerTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticInteger