public class BetaVertex extends ProbabilisticDouble
ID_GENERATOR
Constructor and Description |
---|
BetaVertex(double alpha,
double beta) |
BetaVertex(double alpha,
DoubleVertex beta) |
BetaVertex(DoubleVertex alpha,
double beta) |
BetaVertex(DoubleVertex alpha,
DoubleVertex beta)
One to one constructor for mapping some tensorShape of alpha and beta to
a matching tensorShaped Beta.
|
BetaVertex(int[] tensorShape,
double alpha,
double beta) |
BetaVertex(int[] tensorShape,
double alpha,
DoubleVertex beta) |
BetaVertex(int[] tensorShape,
DoubleVertex alpha,
double beta) |
BetaVertex(int[] tensorShape,
DoubleVertex alpha,
DoubleVertex beta)
One alpha or beta or both that match a proposed tensor shape of Beta.
|
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, getValue, lambda, log, logPdf, logPdf, matrixMultiply, minus, minus, multiply, multiply, observe, observe, pluck, plus, plus, pow, pow, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, tan, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public BetaVertex(int[] tensorShape, DoubleVertex alpha, DoubleVertex beta)
If all provided parameters are scalar then the proposed shape determines the shape
tensorShape
- the desired shape of the tensor contained in the vertexalpha
- the alpha of the Beta with either the same tensorShape as specified for this vertex or a scalarbeta
- the beta of the Beta with either the same tensorShape as specified for this vertex or a scalarpublic BetaVertex(DoubleVertex alpha, DoubleVertex beta)
alpha
- the alpha of the Beta with either the same tensorShape as specified for this vertex or a scalarbeta
- the beta of the Beta with either the same tensorShape as specified for this vertex or a scalarpublic BetaVertex(DoubleVertex alpha, double beta)
public BetaVertex(double alpha, DoubleVertex beta)
public BetaVertex(double alpha, double beta)
public BetaVertex(int[] tensorShape, DoubleVertex alpha, double beta)
public BetaVertex(int[] tensorShape, double alpha, DoubleVertex beta)
public BetaVertex(int[] tensorShape, double alpha, double beta)
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