public class ExponentialVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
ExponentialVertex(double a,
double b) |
ExponentialVertex(double a,
DoubleVertex b) |
ExponentialVertex(DoubleVertex a,
double b) |
ExponentialVertex(DoubleVertex a,
DoubleVertex b)
One to one constructor for mapping some shape of a and b to
a matching shaped exponential.
|
ExponentialVertex(int[] shape,
DoubleVertex a,
DoubleVertex b)
One a or b or both driving an arbitrarily shaped tensor of Exponential
|
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 ExponentialVertex(int[] shape, DoubleVertex a, DoubleVertex b)
shape
- the desired shape of the vertexa
- the a of the Exponential with either the same shape as specified for this vertex or a scalarb
- the b of the Exponential with either the same shape as specified for this vertex or a scalarpublic ExponentialVertex(DoubleVertex a, DoubleVertex b)
a
- the a of the Exponential with either the same shape as specified for this vertex or a scalarb
- the b of the Exponential with either the same shape as specified for this vertex or a scalarpublic ExponentialVertex(DoubleVertex a, double b)
public ExponentialVertex(double a, DoubleVertex b)
public ExponentialVertex(double a, double b)
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