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