public class BetaVertex extends ProbabilisticDouble
idGenerator
Constructor and Description |
---|
BetaVertex(DoubleVertex alpha,
DoubleVertex beta) |
BetaVertex(DoubleVertex alpha,
DoubleVertex beta,
java.util.Random random) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Double> |
convertDualNumbersToDiff(double dPdAlpha,
double dPdBeta,
double dPdx) |
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 BetaVertex(DoubleVertex alpha, DoubleVertex beta, java.util.Random random)
public BetaVertex(DoubleVertex alpha, DoubleVertex beta)
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>
public java.util.Map<java.lang.String,java.lang.Double> convertDualNumbersToDiff(double dPdAlpha, double dPdBeta, double dPdx)