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