public class UniformIntVertex extends ProbabilisticInteger
ID_GENERATOR
Constructor and Description |
---|
UniformIntVertex(int[] shape,
IntegerTensor min,
IntegerTensor max) |
UniformIntVertex(int[] shape,
IntegerVertex min,
int max) |
UniformIntVertex(int[] shape,
IntegerVertex min,
IntegerVertex max) |
UniformIntVertex(int[] shape,
int min,
int max) |
UniformIntVertex(int[] shape,
int min,
IntegerVertex max) |
UniformIntVertex(IntegerVertex min,
int max) |
UniformIntVertex(IntegerVertex min,
IntegerVertex max) |
UniformIntVertex(int min,
int max) |
UniformIntVertex(int min,
IntegerVertex max) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogPmf(IntegerTensor value) |
Vertex<IntegerTensor> |
getMax() |
Vertex<IntegerTensor> |
getMin() |
double |
logPmf(IntegerTensor value) |
IntegerTensor |
sample(KeanuRandom random) |
isProbabilistic, updateValue
abs, div, div, divideBy, divideBy, divideBy, dLogPmf, dLogPmf, getValue, lambda, lambda, logPmf, logPmf, minus, minus, minus, multiply, multiply, multiply, observe, observe, pluck, plus, plus, plus, setAndCascade, setAndCascade, setValue, setValue, slice, sum, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public UniformIntVertex(int[] shape, IntegerVertex min, IntegerVertex max)
shape
- tensor shape of valuemin
- The inclusive lower bound.max
- The exclusive upper bound.public UniformIntVertex(int[] shape, int min, int max)
public UniformIntVertex(int[] shape, IntegerTensor min, IntegerTensor max)
public UniformIntVertex(int[] shape, IntegerVertex min, int max)
public UniformIntVertex(int[] shape, int min, IntegerVertex max)
public UniformIntVertex(IntegerVertex min, IntegerVertex max)
public UniformIntVertex(IntegerVertex min, int max)
public UniformIntVertex(int min, IntegerVertex max)
public UniformIntVertex(int min, int max)
public Vertex<IntegerTensor> getMin()
public Vertex<IntegerTensor> getMax()
public 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 IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomness