public abstract class DoubleVertex extends ContinuousVertex<DoubleTensor> implements io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
ID_GENERATOR
Constructor and Description |
---|
DoubleVertex() |
dLogPdf, dLogProb, logPdf, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, logProbAtValue, observe, observeOwnValue, sample, sample, setAndCascade, setParents, setParents, setValue, unobserve, updateValue
public DoubleVertex minus(DoubleVertex that)
minus
in interface io.improbable.keanu.kotlin.Operators<DoubleVertex>
public DoubleVertex plus(DoubleVertex that)
plus
in interface io.improbable.keanu.kotlin.Operators<DoubleVertex>
public DoubleVertex multiply(DoubleVertex that)
public DoubleVertex matrixMultiply(DoubleVertex that)
public DoubleVertex divideBy(DoubleVertex that)
public DoubleVertex pow(DoubleVertex exponent)
pow
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex minus(double that)
minus
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex plus(double that)
plus
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex multiply(double that)
public DoubleVertex divideBy(double that)
public DoubleVertex pow(double power)
pow
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex abs()
public DoubleVertex floor()
public DoubleVertex ceil()
public DoubleVertex round()
public DoubleVertex exp()
exp
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex log()
log
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex sigmoid()
public DoubleVertex sin()
sin
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex cos()
cos
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex tan()
public DoubleVertex asin()
asin
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex acos()
acos
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex atan()
public DoubleVertex atan2(DoubleVertex that)
public DoubleVertex sum()
public DoubleVertex lambda(int[] outputShape, java.util.function.Function<DoubleTensor,DoubleTensor> op, java.util.function.Function<java.util.Map<Vertex,DualNumber>,DualNumber> dualNumberCalculation)
public DoubleVertex times(DoubleVertex that)
times
in interface io.improbable.keanu.kotlin.Operators<DoubleVertex>
public DoubleVertex div(DoubleVertex that)
div
in interface io.improbable.keanu.kotlin.Operators<DoubleVertex>
public DoubleVertex times(double that)
times
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex div(double that)
div
in interface io.improbable.keanu.kotlin.DoubleOperators<DoubleVertex>
public DoubleVertex unaryMinus()
unaryMinus
in interface io.improbable.keanu.kotlin.Operators<DoubleVertex>
public final DualNumber getDualNumber()
protected abstract DualNumber calculateDualNumber(java.util.Map<Vertex,DualNumber> dualNumbers)
public void setValue(double value)
public void setValue(double[] values)
public void setAndCascade(double value)
public void setAndCascade(double[] values)
public void observe(double value)
public void observe(double[] values)
public double logPdf(double value)
public double logPdf(double[] values)
public java.util.Map<java.lang.Long,DoubleTensor> dLogPdf(double value)
public java.util.Map<java.lang.Long,DoubleTensor> dLogPdf(double[] values)
public double getValue(int... index)