produces a new Factor from the combined input variables of the input factors.
produces a new Factor from the combined input variables of the input factors.
The factor values are computed using the corresponding values from the input factors. This correspondence is determined by the indices of the input factors that overlap with each of the indices of the result factor
The Factor to combine with this one
The operation used to combine (multiply) factor values
The new Factor containing the combined values of the inputs
Creates a new Factor of the same class with a different type and semiring
Creates a new Factor of the same class with a different type and semiring
Creates a new factor of the same type
Creates a new factor of the same type
Returns a new Factor with duplicate variable(s) removed
Returns a new Factor with duplicate variable(s) removed
Fill the contents of this factor by applying a rule to every combination of parent and output values.
Fill the contents of this factor by applying a rule to every combination of parent and output values.
Fold the given function through the contents of the factor, beginning with the given initial values
Fold the given function through the contents of the factor, beginning with the given initial values
Get the value associated with a row.
Get the value associated with a row. The row is identified by an list of indices into the ranges of the variables over which the factor is defined.
Indicates if any of this Factor's variables has Star
Indicates if any of this Factor's variables has Star
Indicates if this Factor is condition/constrained
Indicates if this Factor is condition/constrained
Indicates if this Factor has any variables
Indicates if this Factor has any variables
Convert the contents of the target by applying the given function to all elements of this factor.
Convert the contents of the target by applying the given function to all elements of this factor.
Returns the marginalization of the factor to a variable according to the given addition function.
Returns the marginalization of the factor to a variable according to the given addition function. This involves summing out all other variables.
The single output variable for this factor
The single output variable for this factor
A list of parent variables for this factor representing all the dependencies of this factor
A list of parent variables for this factor representing all the dependencies of this factor
returns the product of this factor with another factor according to a given multiplication function.
returns the product of this factor with another factor according to a given multiplication function. The product is associated with the combined variables of the two inputs, and the value associated with an assignment is the product of the values in the two inputs.
Returns a factor that maps values of the other variables to the value of the given variable that maximizes the entry associated with that value, according to some maximization function.
Returns a factor that maps values of the other variables to the value of the given variable that maximizes the entry associated with that value, according to some maximization function. comparator defines the maximization. It returns true iff its second argument is greater than its first.
The type of element whose value is being recorded. The resulting factor maps values of other variables in this factor to this type.
A Semiring class that defines the operations (sum/max, product) to be used in this factor.
A Semiring class that defines the operations (sum/max, product) to be used in this factor. This defaults to SumProductSemiring
Set the value associated with a row.
Set the value associated with a row. The row is identified by an list of indices into the ranges of the variables over which the factor is defined.
Returns the summation of the factor over a variable according to an addition function.
Returns the summation of the factor over a variable according to an addition function. The result is associated with all the variables in the input except for the summed over variable and the value for a set of assignments is the sum of the values of the corresponding assignments in the input.
Produce a readable string representation of the factor
Produce a readable string representation of the factor
Description that includes the variable list and conditional probabilities
Description that includes the variable list and conditional probabilities
takes the variables in two factors and produces their set union.
takes the variables in two factors and produces their set union.
It produces a mapping from each original variable to its new location. Similarly it produces a mapping from each new variable to its new location.
Constraint Factor. A factor is associated with a set of variables and specifies a value for every combination of assignments to those variables. Factors are parameterized by the types of values they contain.
This factor is used to model constraints on elements.