/** * A vertex that performs a user defined operation on a singe input vertex * * @param inputVertex the input vertex */ public IntegerUnaryOpVertex(IntegerVertex inputVertex) { this(inputVertex.getShape(), inputVertex); }
public IntegerVertex times(IntegerVertex that) { return multiply(that); }
public IntegerVertex div(IntegerVertex that) { return divideBy(that); }
public UniformIntVertex(IntegerVertex min, int max) { this(min.getShape(), min, new ConstantIntegerVertex(max)); }
public Integer getScalarMode() { return getModeAtIndex(0, 0); }
private Vertex<T> getSelector() { int optionGroupIdx = selectorControlVertex.getValue().scalar(); return selectVertices[optionGroupIdx]; }
public IntegerVertexSamples getIntegerTensorSamples(VariableReference variableReference) { return new IntegerVertexSamples(samplesByVariable.get(variableReference)); }
/** * A vertex that performs a user defined operation on two input vertices * * @param left first input vertex * @param right second input vertex */ public IntegerBinaryOpVertex(IntegerVertex left, IntegerVertex right) { this(checkHasOneNonLengthOneShapeOrAllLengthOne(left.getShape(), right.getShape()), left, right); }
public IntegerVertex unaryMinus() { return multiply(-1); }
public IntegerVertex div(int that) { return divideBy(that); }
/** * One to one constructor for mapping some shape of k to * a matching shaped ChiSquared. * * @param k the number of degrees of freedom */ @ExportVertexToPythonBindings public ChiSquaredVertex(IntegerVertex k) { this(k.getShape(), k); }
public IntegerVertex times(int that) { return multiply(that); }
@ExportVertexToPythonBindings public StudentTVertex(IntegerVertex v) { this(v.getShape(), v); }
@ExportVertexToPythonBindings public MultinomialVertex(IntegerVertex n, DoubleVertex p) { this(n.getShape(), n, p); }