Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
drwnFactorReduceOp Class Reference

Reduce factor by oberving the value of one or more variables. More...

Inheritance diagram for drwnFactorReduceOp:
drwnFactorOperation

Public Member Functions

 drwnFactorReduceOp (drwnTableFactor *target, const drwnTableFactor *A, int var, int val)
 
 drwnFactorReduceOp (drwnTableFactor *target, const drwnTableFactor *A, const drwnPartialAssignment &assignment)
 
 drwnFactorReduceOp (const drwnFactorReduceOp &op)
 
void execute ()
 peform the factor operation on the target More...
 
- Public Member Functions inherited from drwnFactorOperation
 drwnFactorOperation (drwnTableFactor *target)
 
 drwnFactorOperation (const drwnFactorOperation &op)
 
drwnTableFactortarget () const
 return a pointer to the target factor
 

Protected Member Functions

bool checkTarget ()
 check that the target is not empty and has the right set of variables for this operation
 
- Protected Member Functions inherited from drwnFactorOperation
virtual void initialize ()
 initialize mappings and target factor (with right set of variables, unless given, e.g. for marginalization)
 

Protected Attributes

const drwnTableFactor *const _operandA
 
drwnPartialAssignment _assignment
 
- Protected Attributes inherited from drwnFactorOperation
drwnTableFactor_target
 

Detailed Description

Reduce factor by oberving the value of one or more variables.

Member Function Documentation

void drwnFactorReduceOp::execute ( )
virtual

peform the factor operation on the target

Todo:
speed up

Implements drwnFactorOperation.


The documentation for this class was generated from the following files: