public class Poisson extends java.lang.Object implements DiscreteDistribution
Modifier and Type | Method and Description |
---|---|
DoubleTensor[] |
dLogProb(IntegerTensor k,
boolean wrtMu) |
DoubleTensor |
logProb(IntegerTensor k) |
static DoubleVertex |
logProbOutput(IntegerPlaceholderVertex k,
DoublePlaceholderVertex mu) |
IntegerTensor |
sample(long[] shape,
KeanuRandom random) |
static Poisson |
withParameters(DoubleTensor mu) |
public static Poisson withParameters(DoubleTensor mu)
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 mu)
public DoubleTensor[] dLogProb(IntegerTensor k, boolean wrtMu)