Package ch.idsia.crema.factor.algebra
Class ExtensiveVertexDefaultAlgebra
- java.lang.Object
-
- ch.idsia.crema.factor.algebra.ExtensiveVertexDefaultAlgebra
-
- All Implemented Interfaces:
Operation<ExtensiveVertexFactor>
public class ExtensiveVertexDefaultAlgebra extends Object implements Operation<ExtensiveVertexFactor>
-
-
Constructor Summary
Constructors Constructor Description ExtensiveVertexDefaultAlgebra()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExtensiveVertexFactor
collect(ExtensiveVertexFactor factor, int offset, Collector collector)
ExtensiveVertexFactor
combine(ExtensiveVertexFactor one, ExtensiveVertexFactor two)
Combine two or more factors.ExtensiveVertexFactor
divide(ExtensiveVertexFactor one, ExtensiveVertexFactor other)
Divide the specified factors with eachothers.ExtensiveVertexFactor
filter(ExtensiveVertexFactor factor, int variable, int state)
Select the subfactor of factor one where the specified variable is in state "state".ExtensiveVertexFactor
marginalize(ExtensiveVertexFactor factor, int variable)
Marginalize the specified variable from the factor.
-
-
-
Method Detail
-
collect
protected ExtensiveVertexFactor collect(ExtensiveVertexFactor factor, int offset, Collector collector)
-
combine
public ExtensiveVertexFactor combine(ExtensiveVertexFactor one, ExtensiveVertexFactor two)
Description copied from interface:Operation
Combine two or more factors. The actual operation and the access to the information is left to the actaul implementation.- Specified by:
combine
in interfaceOperation<ExtensiveVertexFactor>
- Returns:
-
filter
public ExtensiveVertexFactor filter(ExtensiveVertexFactor factor, int variable, int state)
Description copied from interface:Operation
Select the subfactor of factor one where the specified variable is in state "state".- Specified by:
filter
in interfaceOperation<ExtensiveVertexFactor>
- Returns:
-
marginalize
public ExtensiveVertexFactor marginalize(ExtensiveVertexFactor factor, int variable)
Description copied from interface:Operation
Marginalize the specified variable from the factor.- Specified by:
marginalize
in interfaceOperation<ExtensiveVertexFactor>
- Returns:
-
divide
public ExtensiveVertexFactor divide(ExtensiveVertexFactor one, ExtensiveVertexFactor other)
Description copied from interface:Operation
Divide the specified factors with eachothers.- Specified by:
divide
in interfaceOperation<ExtensiveVertexFactor>
- Returns:
-
-