public class UniformIntVertex extends ProbabilisticInteger
idGenerator
Constructor and Description |
---|
UniformIntVertex(int min,
int max) |
UniformIntVertex(Vertex<java.lang.Integer> min,
Vertex<java.lang.Integer> max) |
UniformIntVertex(Vertex<java.lang.Integer> min,
Vertex<java.lang.Integer> max,
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.Integer value)
This is the value of the probability density at the supplied value.
|
java.lang.Integer |
sample() |
isProbabilistic, lazyEval, updateValue
abs, div, div, divideBy, divideBy, divideBy, lambda, minus, minus, minus, multiply, multiply, multiply, plus, plus, plus, times, times, unaryMinus
addChild, addParent, addParents, densityAtValue, dlnDensityAtValue, equals, getChildren, getConnectedGraph, getId, getParents, getValue, hashCode, isObserved, logDensity, logDensityAtValue, observe, observeOwnValue, setAndCascade, setParents, setParents, setValue, unobserve, updateChildren
public UniformIntVertex(Vertex<java.lang.Integer> min, Vertex<java.lang.Integer> max, java.util.Random random)
min
- The inclusive lower bound.max
- The exclusive upper bound.public UniformIntVertex(Vertex<java.lang.Integer> min, Vertex<java.lang.Integer> max)
min
- The inclusive lower max.max
- The exclusive upper max.public UniformIntVertex(int min, int max)
min
- The inclusive lower max.max
- The exclusive upper max.public double density(java.lang.Integer value)
Vertex
public java.util.Map<java.lang.String,java.lang.Double> dDensityAtValue()
Vertex
dDensityAtValue
in class Vertex<java.lang.Integer>