public class GaussianVertex extends ProbabilisticDouble
idGenerator
Constructor and Description |
---|
GaussianVertex(double mu,
double sigma) |
GaussianVertex(double mu,
double sigma,
java.util.Random random) |
GaussianVertex(double mu,
DoubleVertex sigma) |
GaussianVertex(double mu,
DoubleVertex sigma,
java.util.Random random) |
GaussianVertex(DoubleVertex mu,
double sigma) |
GaussianVertex(DoubleVertex mu,
double sigma,
java.util.Random random) |
GaussianVertex(DoubleVertex mu,
DoubleVertex sigma) |
GaussianVertex(DoubleVertex mu,
DoubleVertex sigma,
java.util.Random random) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Double> |
dDensityAtValue()
This returns the derivative of the density function with respect to
any dependent vertices.
|
double |
density(java.lang.Double value)
This is the value of the probability density at the supplied value.
|
java.util.Map<java.lang.String,java.lang.Double> |
dlnDensityAtValue()
This is the same as dDensityAtValue except for the log of the density.
|
double |
logDensity(java.lang.Double value)
This is the value of the natural log of the probability density at the supplied value.
|
java.lang.Double |
sample() |
getDualNumber, isProbabilistic, lazyEval, updateValue
abs, div, div, divideBy, divideBy, divideBy, lambda, minus, minus, minus, multiply, multiply, multiply, plus, plus, plus, pow, times, times, unaryMinus
addChild, addParent, addParents, densityAtValue, equals, getChildren, getConnectedGraph, getId, getParents, getValue, hashCode, isObserved, logDensityAtValue, observe, observeOwnValue, setAndCascade, setParents, setParents, setValue, unobserve, updateChildren
public GaussianVertex(DoubleVertex mu, DoubleVertex sigma, java.util.Random random)
public GaussianVertex(DoubleVertex mu, DoubleVertex sigma)
public GaussianVertex(double mu, double sigma)
public GaussianVertex(double mu, DoubleVertex sigma)
public GaussianVertex(DoubleVertex mu, double sigma)
public GaussianVertex(double mu, double sigma, java.util.Random random)
public GaussianVertex(double mu, DoubleVertex sigma, java.util.Random random)
public GaussianVertex(DoubleVertex mu, double sigma, java.util.Random random)
public double density(java.lang.Double value)
Vertex
public double logDensity(java.lang.Double value)
Vertex
logDensity
in class Vertex<java.lang.Double>
value
- The supplied value.public java.util.Map<java.lang.String,java.lang.Double> dDensityAtValue()
Vertex
dDensityAtValue
in class Vertex<java.lang.Double>
public java.util.Map<java.lang.String,java.lang.Double> dlnDensityAtValue()
Vertex
dlog(P)/dx = (dP/dx)*(1/P(x))
dlnDensityAtValue
in class Vertex<java.lang.Double>