public class Multinomial extends java.lang.Object implements DiscreteDistribution
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_ALLOWED_PROBABILITY_ERROR |
| Modifier and Type | Method and Description |
|---|---|
DoubleTensor |
logProb(IntegerTensor x) |
IntegerTensor |
sample(long[] shape,
KeanuRandom random) |
static void |
setAllowedProbabilityError(double allowedProbabilityError) |
static Multinomial |
withParameters(IntegerTensor n,
DoubleTensor p) |
static Multinomial |
withParameters(IntegerTensor n,
DoubleTensor p,
boolean validationEnabled) |
public static final double DEFAULT_ALLOWED_PROBABILITY_ERROR
public static void setAllowedProbabilityError(double allowedProbabilityError)
public static Multinomial withParameters(IntegerTensor n, DoubleTensor p)
public static Multinomial withParameters(IntegerTensor n, DoubleTensor p, boolean validationEnabled)
public IntegerTensor sample(long[] shape, KeanuRandom random)
sample in interface Distribution<IntegerTensor>public DoubleTensor logProb(IntegerTensor x)
logProb in interface Distribution<IntegerTensor>