public class GammaVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
GammaVertex(double a,
double theta,
double k) |
GammaVertex(double a,
double theta,
DoubleVertex k) |
GammaVertex(double a,
DoubleVertex theta,
double k) |
GammaVertex(double a,
DoubleVertex theta,
DoubleVertex k) |
GammaVertex(DoubleVertex a,
double theta,
double k) |
GammaVertex(DoubleVertex a,
double theta,
DoubleVertex k) |
GammaVertex(DoubleVertex a,
DoubleVertex theta,
double k) |
GammaVertex(DoubleVertex a,
DoubleVertex theta,
DoubleVertex k)
One to one constructor for mapping some shape of a, theta and k to
a matching shaped gamma.
|
GammaVertex(int[] shape,
DoubleVertex a,
DoubleVertex theta,
DoubleVertex k)
One a, theta or k or all three driving an arbitrarily shaped tensor of Gamma
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogPdf(DoubleTensor value) |
double |
logPdf(DoubleTensor value) |
DoubleTensor |
sample(KeanuRandom random) |
calculateDualNumber, isProbabilistic, updateValue
abs, acos, asin, atan, atan2, ceil, cos, div, div, divideBy, divideBy, dLogPdf, dLogPdf, exp, floor, getDualNumber, lambda, log, logPdf, logPdf, minus, minus, multiply, multiply, observe, observe, plus, plus, pow, pow, setAndCascade, setAndCascade, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, tan, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, exploreSetting, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sampleUsingDefaultRandom, setAndCascade, setAndCascade, setParents, setParents, setValue, unobserve
public GammaVertex(int[] shape, DoubleVertex a, DoubleVertex theta, DoubleVertex k)
shape
- the desired shape of the vertexa
- the a of the Gamma with either the same shape as specified for this vertex or a scalartheta
- the theta of the Gamma with either the same shape as specified for this vertex or a scalark
- the k of the Gamma with either the same shape as specified for this vertex or a scalarpublic GammaVertex(DoubleVertex a, DoubleVertex theta, DoubleVertex k)
a
- the a of the Gamma with either the same shape as specified for this vertex or a scalartheta
- the theta of the Gamma with either the same shape as specified for this vertex or a scalark
- the k of the Gamma with either the same shape as specified for this vertex or a scalarpublic GammaVertex(DoubleVertex a, DoubleVertex theta, double k)
public GammaVertex(DoubleVertex a, double theta, DoubleVertex k)
public GammaVertex(DoubleVertex a, double theta, double k)
public GammaVertex(double a, DoubleVertex theta, DoubleVertex k)
public GammaVertex(double a, DoubleVertex theta, double k)
public GammaVertex(double a, double theta, DoubleVertex k)
public GammaVertex(double a, double theta, double k)
public double logPdf(DoubleTensor value)
logPdf
in class ContinuousVertex<DoubleTensor>
public java.util.Map<java.lang.Long,DoubleTensor> dLogPdf(DoubleTensor value)
dLogPdf
in class ContinuousVertex<DoubleTensor>
public DoubleTensor sample(KeanuRandom random)
sample
in class Vertex<DoubleTensor>
random
- source of randomness