public class GammaVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
GammaVertex(double location,
double theta,
double k) |
GammaVertex(double location,
double theta,
DoubleVertex k) |
GammaVertex(double location,
DoubleVertex theta,
double k) |
GammaVertex(double location,
DoubleVertex theta,
DoubleVertex k) |
GammaVertex(DoubleVertex location,
double theta,
double k) |
GammaVertex(DoubleVertex location,
double theta,
DoubleVertex k) |
GammaVertex(DoubleVertex location,
DoubleVertex theta,
double k) |
GammaVertex(DoubleVertex location,
DoubleVertex theta,
DoubleVertex k)
One to one constructor for mapping some shape of location, theta and k to
location matching shaped gamma.
|
GammaVertex(int[] tensorShape,
DoubleVertex location,
DoubleVertex theta,
DoubleVertex k)
One location, 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, getValue, lambda, log, logPdf, logPdf, matrixMultiply, minus, minus, multiply, multiply, observe, observe, plus, plus, pow, pow, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, sum, tan, 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 GammaVertex(int[] tensorShape, DoubleVertex location, DoubleVertex theta, DoubleVertex k)
If all provided parameters are scalar then the proposed shape determines the shape
tensorShape
- the desired shape of the vertexlocation
- the location of the Gamma with either the same shape as specified for this vertex or location scalartheta
- the theta (scale) of the Gamma with either the same shape as specified for this vertex or location scalark
- the k (shape) of the Gamma with either the same shape as specified for this vertex or location scalarpublic GammaVertex(DoubleVertex location, DoubleVertex theta, DoubleVertex k)
location
- the location of the Gamma with either the same shape as specified for this vertex or location scalartheta
- the theta (scale) of the Gamma with either the same shape as specified for this vertex or location scalark
- the k (shape) of the Gamma with either the same shape as specified for this vertex or location scalarpublic GammaVertex(DoubleVertex location, DoubleVertex theta, double k)
public GammaVertex(DoubleVertex location, double theta, DoubleVertex k)
public GammaVertex(DoubleVertex location, double theta, double k)
public GammaVertex(double location, DoubleVertex theta, DoubleVertex k)
public GammaVertex(double location, DoubleVertex theta, double k)
public GammaVertex(double location, double theta, DoubleVertex k)
public GammaVertex(double location, 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