public class LogisticVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
LogisticVertex(double a,
double b) |
LogisticVertex(double a,
DoubleVertex b) |
LogisticVertex(DoubleVertex a,
double b) |
LogisticVertex(DoubleVertex a,
DoubleVertex b)
One to one constructor for mapping some shape of a and b to
a matching shaped logistic.
|
LogisticVertex(int[] shape,
DoubleVertex a,
DoubleVertex b)
One a or b or both driving an arbitrarily shaped tensor of Logistic
|
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 LogisticVertex(int[] shape, DoubleVertex a, DoubleVertex b)
shape
- the desired shape of the vertexa
- the a of the Logistic with either the same shape as specified for this vertex or a scalarb
- the b of the Logistic with either the same shape as specified for this vertex or a scalarpublic LogisticVertex(DoubleVertex a, DoubleVertex b)
a
- the a of the Logistic with either the same shape as specified for this vertex or a scalarb
- the b of the Logistic with either the same shape as specified for this vertex or a scalarpublic LogisticVertex(DoubleVertex a, double b)
public LogisticVertex(double a, DoubleVertex b)
public LogisticVertex(double a, double b)
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