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 shape of alpha and beta to
a matching shaped Beta.
|
BetaVertex(int[] shape,
double alpha,
double beta) |
BetaVertex(int[] shape,
double alpha,
DoubleVertex beta) |
BetaVertex(int[] shape,
DoubleVertex alpha,
double beta) |
BetaVertex(int[] shape,
DoubleVertex alpha,
DoubleVertex beta)
One alpha or beta or both driving an arbitrarily shaped tensor 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, 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 BetaVertex(int[] shape, DoubleVertex alpha, DoubleVertex beta)
shape
- the desired shape of the vertexalpha
- the alpha of the Beta with either the same shape as specified for this vertex or a scalarbeta
- the beta of the Beta with either the same shape as specified for this vertex or a scalarpublic BetaVertex(DoubleVertex alpha, DoubleVertex beta)
alpha
- the alpha of the Beta with either the same shape as specified for this vertex or a scalarbeta
- the beta of the Beta with either the same shape 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[] shape, DoubleVertex alpha, double beta)
public BetaVertex(int[] shape, double alpha, DoubleVertex beta)
public BetaVertex(int[] shape, 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