public class PowerVertex extends DoubleBinaryOpVertex
left, right
ID_GENERATOR
Constructor and Description |
---|
PowerVertex(DoubleVertex left,
DoubleVertex right)
Raises a vertex to the power of another
|
Modifier and Type | Method and Description |
---|---|
protected DualNumber |
calculateDualNumber(java.util.Map<Vertex,DualNumber> dualNumbers) |
DoubleVertex |
getBase() |
DoubleVertex |
getExponent() |
protected DoubleTensor |
op(DoubleTensor left,
DoubleTensor right) |
getDerivedValue, getLeft, getRight, sample
dLogPdf, isProbabilistic, logPdf, observe, 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, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public PowerVertex(DoubleVertex left, DoubleVertex right)
left
- the base vertexright
- the exponent vertexprotected DoubleTensor op(DoubleTensor left, DoubleTensor right)
op
in class DoubleBinaryOpVertex
protected DualNumber calculateDualNumber(java.util.Map<Vertex,DualNumber> dualNumbers)
calculateDualNumber
in class DoubleVertex
public DoubleVertex getBase()
public DoubleVertex getExponent()