public class UniformInt extends java.lang.Object implements DiscreteDistribution
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
logProb(IntegerTensor x) |
IntegerTensor |
sample(int[] shape,
KeanuRandom random) |
static DiscreteDistribution |
withParameters(IntegerTensor xMin,
IntegerTensor xMax) |
public static DiscreteDistribution withParameters(IntegerTensor xMin, IntegerTensor xMax)
public IntegerTensor sample(int[] shape, KeanuRandom random)
sample
in interface Distribution<IntegerTensor>
public DoubleTensor logProb(IntegerTensor x)
logProb
in interface Distribution<IntegerTensor>