public class HalfCauchyVertex extends CauchyVertex
Constructor and Description |
---|
HalfCauchyVertex(double scale) |
HalfCauchyVertex(DoubleVertex scale) |
HalfCauchyVertex(int[] tensorShape,
double scale) |
HalfCauchyVertex(int[] tensorShape,
DoubleVertex scale)
One scale that matches a proposed tensor shape of HalfCauchy (Cauchy with location = 0 and non-negative x)
|
Modifier and Type | Method and Description |
---|---|
double |
logProb(DoubleTensor value)
This is the natural log of the probability at the supplied value.
|
DoubleTensor |
sample(KeanuRandom random) |
dLogProb, getLocation, getScale
abs, acos, asin, atan, atan2, calculateDualNumber, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, log, matrixInverse, matrixMultiply, minus, minus, multiply, multiply, notEqualTo, observe, observe, plus, plus, pow, pow, reshape, reverseModeAutoDifferentiation, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, take, tan, times, times, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getIndentation, getLabel, getObservedValue, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, labeledAs, lazyEval, observe, observeOwnValue, sample, setAndCascade, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dLogPdf, dLogPdf, dLogPdf, dLogPdf, dLogPdf, dLogPdf, logPdf, logPdf, logPdf
dLogProb, dLogProbAtValue, dLogProbAtValue, getValue, keepOnlyProbabilisticVertices, logProbAtValue, setValue
getObservedValue, isObserved, observableTypeFor, observe, unobserve
getDualNumber
public HalfCauchyVertex(int[] tensorShape, DoubleVertex scale)
If provided parameter is scalar then the proposed shape determines the shape
tensorShape
- the desired shape of the tensor in this vertexscale
- the scale of the HalfCauchy with either the same tensorShape as specified for this vertex or a scalarpublic HalfCauchyVertex(int[] tensorShape, double scale)
public HalfCauchyVertex(DoubleVertex scale)
public HalfCauchyVertex(double scale)
public double logProb(DoubleTensor value)
Probabilistic
logProb
in interface Probabilistic<DoubleTensor>
logProb
in class CauchyVertex
value
- The supplied value.public DoubleTensor sample(KeanuRandom random)
sample
in class CauchyVertex
random
- source of randomness