public class LaplaceVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
LaplaceVertex(double mu,
double beta) |
LaplaceVertex(double mu,
DoubleVertex beta) |
LaplaceVertex(DoubleVertex mu,
double beta) |
LaplaceVertex(DoubleVertex mu,
DoubleVertex beta)
One to one constructor for mapping some shape of mu and sigma to
a matching shaped laplace.
|
LaplaceVertex(int[] shape,
DoubleVertex mu,
DoubleVertex beta)
One mu or beta or both driving an arbitrarily shaped tensor of Laplace
|
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 LaplaceVertex(int[] shape, DoubleVertex mu, DoubleVertex beta)
shape
- the desired shape of the vertexmu
- the mu of the Laplace with either the same shape as specified for this vertex or a scalarbeta
- the beta of the Laplace with either the same shape as specified for this vertex or a scalarpublic LaplaceVertex(DoubleVertex mu, DoubleVertex beta)
mu
- the mu of the Laplace with either the same shape as specified for this vertex or a scalarbeta
- the beta of the Laplace with either the same shape as specified for this vertex or a scalarpublic LaplaceVertex(DoubleVertex mu, double beta)
public LaplaceVertex(double mu, DoubleVertex beta)
public LaplaceVertex(double mu, double beta)
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