示例#1
0
def IntegerPower(left: vertex_constructor_param_types,
                 right: vertex_constructor_param_types) -> Vertex:
    """
    Raises one vertex to the power of another
    
    :param left: the base vertex
    :param right: the exponent vertex
    """
    return Integer(context.jvm_view().IntegerPowerVertex,
                   cast_to_integer(left), cast_to_integer(right))
示例#2
0
def IntegerMin(left: vertex_constructor_param_types,
               right: vertex_constructor_param_types) -> Vertex:
    """
    Finds the minimum between two vertices
    
    :param left: one of the vertices to find the minimum of
    :param right: one of the vertices to find the minimum of
    """
    return Integer(context.jvm_view().IntegerMinVertex, cast_to_integer(left),
                   cast_to_integer(right))
示例#3
0
def IntegerMultiplication(left: vertex_constructor_param_types,
                          right: vertex_constructor_param_types) -> Vertex:
    """
    Multiplies one vertex by another
    
    :param left: a vertex to be multiplied
    :param right: a vertex to be multiplied
    """
    return Integer(context.jvm_view().IntegerMultiplicationVertex,
                   cast_to_integer(left), cast_to_integer(right))
示例#4
0
def IntegerDivision(left: vertex_constructor_param_types,
                    right: vertex_constructor_param_types) -> Vertex:
    """
    Divides one vertex by another
    
    :param left: a vertex to be divided
    :param right: a vertex to divide by
    """
    return Integer(context.jvm_view().IntegerDivisionVertex,
                   cast_to_integer(left), cast_to_integer(right))
示例#5
0
def IntegerDifference(left: vertex_constructor_param_types,
                      right: vertex_constructor_param_types) -> Vertex:
    """
    Subtracts one vertex from another
    
    :param left: the vertex to be subtracted from
    :param right: the vertex to subtract
    """
    return Integer(context.jvm_view().IntegerDifferenceVertex,
                   cast_to_integer(left), cast_to_integer(right))
示例#6
0
def IntegerAddition(left: vertex_constructor_param_types,
                    right: vertex_constructor_param_types) -> Vertex:
    """
    Adds one vertex to another
    
    :param left: a vertex to add
    :param right: a vertex to add
    """
    return Integer(context.jvm_view().IntegerAdditionVertex,
                   cast_to_integer(left), cast_to_integer(right))
示例#7
0
def IntegerSum(input_vertex: vertex_constructor_param_types) -> Vertex:
    """
    Performs a sum across each value stored in a vertex
    
    :param input_vertex: the vertex to have its values summed
    """
    return Integer(context.jvm_view().IntegerSumVertex,
                   cast_to_integer(input_vertex))
示例#8
0
def IntegerAbs(input_vertex: vertex_constructor_param_types) -> Vertex:
    """
    Takes the absolute value of a vertex
    
    :param input_vertex: the vertex
    """
    return Integer(context.jvm_view().IntegerAbsVertex,
                   cast_to_integer(input_vertex))
示例#9
0
def ChiSquared(k: vertex_constructor_param_types) -> Vertex:
    """
    One to one constructor for mapping some shape of k to
    a matching shaped ChiSquared.
    
    :param k: the number of degrees of freedom
    """
    return Double(context.jvm_view().ChiSquaredVertex, cast_to_integer(k))
示例#10
0
def UniformInt(min: vertex_constructor_param_types,
               max: vertex_constructor_param_types) -> Vertex:
    return Integer(context.jvm_view().UniformIntVertex, cast_to_integer(min),
                   cast_to_integer(max))
示例#11
0
def Multinomial(n: vertex_constructor_param_types,
                p: vertex_constructor_param_types) -> Vertex:
    return Integer(context.jvm_view().MultinomialVertex, cast_to_integer(n),
                   cast_to_double(p))
示例#12
0
def StudentT(v: vertex_constructor_param_types) -> Vertex:
    return Double(context.jvm_view().StudentTVertex, cast_to_integer(v))