public class TriangularVertex extends DoubleVertex implements Differentiable, ProbabilisticDouble, SamplableWithManyScalars<DoubleTensor>, LogProbGraphSupplier
| Constructor and Description |
|---|
TriangularVertex(double xMin,
double xMax,
double c) |
TriangularVertex(double xMin,
double xMax,
DoubleVertex c) |
TriangularVertex(double xMin,
DoubleVertex xMax,
DoubleVertex c) |
TriangularVertex(DoubleVertex xMin,
double xMax,
double c) |
TriangularVertex(DoubleVertex xMin,
double xMax,
DoubleVertex c) |
TriangularVertex(DoubleVertex xMin,
DoubleVertex xMax,
double c) |
TriangularVertex(DoubleVertex xMin,
DoubleVertex xMax,
DoubleVertex c)
One to one constructor for mapping some shape of xMin, xMax and c to a matching shaped triangular.
|
TriangularVertex(long[] tensorShape,
double xMin,
double xMax,
double c) |
TriangularVertex(long[] tensorShape,
double xMin,
double xMax,
DoubleVertex c) |
TriangularVertex(long[] tensorShape,
double xMin,
DoubleVertex xMax,
DoubleVertex c) |
TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
double xMax,
double c) |
TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
double xMax,
DoubleVertex c) |
TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
DoubleVertex xMax,
double c) |
TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
DoubleVertex xMax,
DoubleVertex c)
One xMin, xMax, c or all three that match a proposed tensor shape of Triangular
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<Vertex,DoubleTensor> |
dLogProb(DoubleTensor value,
java.util.Set<? extends Vertex> withRespectTo)
The partial derivatives of the natural log prob.
|
DoubleVertex |
getC() |
DoubleVertex |
getXMax() |
DoubleVertex |
getXMin() |
double |
logProb(DoubleTensor value)
This is the natural log of the probability at the supplied value.
|
LogProbGraph |
logProbGraph() |
DoubleTensor |
sampleWithShape(long[] shape,
KeanuRandom random) |
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, permute, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, round, saveValue, setAndCascade, setAndCascade, setValue, setValue, setWithMask, setWithMask, sigmoid, sin, slice, sum, sum, take, tan, times, times, toGreaterThanMask, toGreaterThanMask, toGreaterThanOrEqualToMask, toGreaterThanOrEqualToMask, toInteger, toLessThanMask, toLessThanMask, toLessThanOrEqualToMask, toLessThanOrEqualToMask, transpose, unaryMinusaddChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitforwardModeAutoDifferentiation, reverseModeAutoDifferentiation, withRespectToSelfdLogPdf, dLogPdf, dLogPdf, dLogPdf, dLogPdf, dLogPdf, logPdf, logPdf, logPdfdLogProb, dLogProbAtValue, dLogProbAtValue, getValue, keepOnlyProbabilisticVertices, logProbAtValuegetObservedValue, isObserved, observe, unobservesample, sampleManyScalars, sampleManyScalarssampleWithShapepublic TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
DoubleVertex xMax,
DoubleVertex c)
If all provided parameters are scalar then the proposed shape determines the shape
tensorShape - the desired shape of the vertexxMin - the xMin of the Triangular with either the same shape as specified for this vertex or a scalarxMax - the xMax of the Triangular with either the same shape as specified for this vertex or a scalarc - the center of the Triangular with either the same shape as specified for this vertex or a scalarpublic TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
DoubleVertex xMax,
double c)
public TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
double xMax,
DoubleVertex c)
public TriangularVertex(long[] tensorShape,
DoubleVertex xMin,
double xMax,
double c)
public TriangularVertex(long[] tensorShape,
double xMin,
DoubleVertex xMax,
DoubleVertex c)
public TriangularVertex(long[] tensorShape,
double xMin,
double xMax,
DoubleVertex c)
public TriangularVertex(long[] tensorShape,
double xMin,
double xMax,
double c)
public TriangularVertex(DoubleVertex xMin, DoubleVertex xMax, DoubleVertex c)
xMin - the xMin of the Triangular with either the same shape as specified for this vertex or a scalarxMax - the xMax of the Triangular with either the same shape as specified for this vertex or a scalarc - the c of the Triangular with either the same shape as specified for this vertex or a scalarpublic TriangularVertex(DoubleVertex xMin, DoubleVertex xMax, double c)
public TriangularVertex(DoubleVertex xMin, double xMax, DoubleVertex c)
public TriangularVertex(DoubleVertex xMin, double xMax, double c)
public TriangularVertex(double xMin,
DoubleVertex xMax,
DoubleVertex c)
public TriangularVertex(double xMin,
double xMax,
DoubleVertex c)
public TriangularVertex(double xMin,
double xMax,
double c)
public DoubleVertex getXMin()
public DoubleVertex getXMax()
public DoubleVertex getC()
public double logProb(DoubleTensor value)
ProbabilisticlogProb in interface Probabilistic<DoubleTensor>value - The supplied value.public LogProbGraph logProbGraph()
logProbGraph in interface LogProbGraphSupplierpublic java.util.Map<Vertex,DoubleTensor> dLogProb(DoubleTensor value, java.util.Set<? extends Vertex> withRespectTo)
ProbabilisticdLogProb in interface Probabilistic<DoubleTensor>value - at a given valuewithRespectTo - list of parents to differentiate with respect topublic DoubleTensor sampleWithShape(long[] shape, KeanuRandom random)
sampleWithShape in interface SamplableWithShape<DoubleTensor>