public class GaussianVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
GaussianVertex(double mu,
double sigma) |
GaussianVertex(double mu,
DoubleVertex sigma) |
GaussianVertex(DoubleVertex mu,
double sigma) |
GaussianVertex(DoubleVertex mu,
DoubleVertex sigma)
One to one constructor for mapping some shape of mu and sigma to
a matching shaped gaussian.
|
GaussianVertex(int[] shape,
double mu,
double sigma) |
GaussianVertex(int[] shape,
double mu,
DoubleVertex sigma) |
GaussianVertex(int[] shape,
DoubleVertex mu,
double sigma) |
GaussianVertex(int[] shape,
DoubleVertex mu,
DoubleVertex sigma)
One mu or sigma or both driving an arbitrarily shaped tensor of Gaussian
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogPdf(DoubleTensor value) |
DoubleVertex |
getMu() |
DoubleVertex |
getSigma() |
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 GaussianVertex(int[] shape, DoubleVertex mu, DoubleVertex sigma)
shape
- the desired shape of the vertexmu
- the mu of the Gaussian with either the same shape as specified for this vertex or a scalarsigma
- the sigma of the Gaussian with either the same shape as specified for this vertex or a scalarpublic GaussianVertex(DoubleVertex mu, DoubleVertex sigma)
mu
- mu with same shape as desired Gaussian tensor or scalarsigma
- sigma with same shape as desired Gaussian tensor or scalarpublic GaussianVertex(DoubleVertex mu, double sigma)
public GaussianVertex(double mu, DoubleVertex sigma)
public GaussianVertex(double mu, double sigma)
public GaussianVertex(int[] shape, DoubleVertex mu, double sigma)
public GaussianVertex(int[] shape, double mu, DoubleVertex sigma)
public GaussianVertex(int[] shape, double mu, double sigma)
public DoubleVertex getMu()
public DoubleVertex getSigma()
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