public class BinomialVertex extends ProbabilisticInteger
ID_GENERATOR
Constructor and Description |
---|
BinomialVertex(double p,
int n) |
BinomialVertex(double p,
IntegerVertex n) |
BinomialVertex(DoubleVertex p,
int n) |
BinomialVertex(DoubleVertex p,
IntegerVertex n) |
BinomialVertex(int[] tensorShape,
double p,
int n) |
BinomialVertex(int[] tensorShape,
double p,
IntegerVertex n) |
BinomialVertex(int[] tensorShape,
DoubleVertex p,
int n) |
BinomialVertex(int[] tensorShape,
DoubleVertex p,
IntegerVertex n) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogPmf(IntegerTensor value) |
double |
logPmf(IntegerTensor kTensor) |
IntegerTensor |
sample(KeanuRandom random) |
isProbabilistic, updateValue
abs, div, div, divideBy, divideBy, divideBy, dLogPmf, dLogPmf, getValue, lambda, lambda, logPmf, logPmf, minus, minus, minus, multiply, multiply, multiply, observe, observe, pluck, plus, plus, plus, setAndCascade, setAndCascade, setValue, setValue, slice, sum, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public BinomialVertex(int[] tensorShape, DoubleVertex p, IntegerVertex n)
public BinomialVertex(int[] tensorShape, double p, IntegerVertex n)
public BinomialVertex(int[] tensorShape, DoubleVertex p, int n)
public BinomialVertex(int[] tensorShape, double p, int n)
public BinomialVertex(DoubleVertex p, IntegerVertex n)
public BinomialVertex(double p, IntegerVertex n)
public BinomialVertex(DoubleVertex p, int n)
public BinomialVertex(double p, int n)
public double logPmf(IntegerTensor kTensor)
logPmf
in class DiscreteVertex<IntegerTensor>
public java.util.Map<java.lang.Long,DoubleTensor> dLogPmf(IntegerTensor value)
dLogPmf
in class DiscreteVertex<IntegerTensor>
public IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomness