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 ExtensiveVertexFactorcollect(ExtensiveVertexFactor factor, int offset, Collector collector)ExtensiveVertexFactorcombine(ExtensiveVertexFactor one, ExtensiveVertexFactor two)Combine two or more factors.ExtensiveVertexFactordivide(ExtensiveVertexFactor one, ExtensiveVertexFactor other)Divide the specified factors with eachothers.ExtensiveVertexFactorfilter(ExtensiveVertexFactor factor, int variable, int state)Select the subfactor of factor one where the specified variable is in state "state".ExtensiveVertexFactormarginalize(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:OperationCombine two or more factors. The actual operation and the access to the information is left to the actaul implementation.- Specified by:
combinein interfaceOperation<ExtensiveVertexFactor>- Returns:
-
filter
public ExtensiveVertexFactor filter(ExtensiveVertexFactor factor, int variable, int state)
Description copied from interface:OperationSelect the subfactor of factor one where the specified variable is in state "state".- Specified by:
filterin interfaceOperation<ExtensiveVertexFactor>- Returns:
-
marginalize
public ExtensiveVertexFactor marginalize(ExtensiveVertexFactor factor, int variable)
Description copied from interface:OperationMarginalize the specified variable from the factor.- Specified by:
marginalizein interfaceOperation<ExtensiveVertexFactor>- Returns:
-
divide
public ExtensiveVertexFactor divide(ExtensiveVertexFactor one, ExtensiveVertexFactor other)
Description copied from interface:OperationDivide the specified factors with eachothers.- Specified by:
dividein interfaceOperation<ExtensiveVertexFactor>- Returns:
-
-