public class StudentTVertex extends DoubleVertex implements ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
StudentTVertex(int v) |
StudentTVertex(int[] tensorShape,
int v) |
StudentTVertex(int[] tensorShape,
IntegerVertex v)
One v that must match a proposed tensor shape of StudentT
|
StudentTVertex(IntegerVertex v) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogProb(DoubleTensor t)
The partial derivatives of the natural log prob.
|
IntegerVertex |
getV() |
double |
logProb(DoubleTensor t)
This is the natural log of the probability at the supplied value.
|
DoubleTensor |
sample(KeanuRandom random) |
abs, acos, asin, atan, atan2, calculateDualNumber, ceil, cos, div, div, divideBy, divideBy, exp, floor, getValue, lambda, log, matrixMultiply, minus, minus, multiply, multiply, observe, observe, plus, plus, pow, pow, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, take, tan, times, times, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve, updateValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
dLogPdf, dLogPdf, dLogPdf, logPdf, logPdf, logPdf
dLogProbAtValue, getValue, keepOnlyProbabilisticVertices, logProbAtValue, setValue
isObserved, observableTypeFor, observe, unobserve
getDualNumber, keepOnlyDifferentiableVertices
public StudentTVertex(int[] tensorShape, IntegerVertex v)
If all provided parameters are scalar then the proposed shape determines the shape
tensorShape
- expected tensor shapev
- Degrees of Freedompublic StudentTVertex(int[] tensorShape, int v)
public StudentTVertex(IntegerVertex v)
public StudentTVertex(int v)
public IntegerVertex getV()
public double logProb(DoubleTensor t)
Probabilistic
logProb
in interface Probabilistic<DoubleTensor>
t
- The supplied value.public java.util.Map<java.lang.Long,DoubleTensor> dLogProb(DoubleTensor t)
Probabilistic
dLogProb
in interface Probabilistic<DoubleTensor>
t
- at a given valuepublic DoubleTensor sample(KeanuRandom random)
sample
in class Vertex<DoubleTensor>
random
- source of randomness