20 #include "drwnTableFactor.h"
21 #include "drwnTableFactorMapping.h"
97 std::vector<const drwnTableFactor *> _factors;
98 std::vector<drwnTableFactorMapping> _mappings;
104 const std::vector<const drwnTableFactor *>& A);
160 const std::vector<const drwnTableFactor *>& A);
188 const std::vector<const drwnTableFactor *>& A);
Base class for implementing unary factor operations.
Definition: drwnTableFactorOps.h:55
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:79
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:358
Minimize over one or more variables in a factor.
Definition: drwnTableFactorOps.h:320
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:513
virtual bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.h:49
void initialize()
initialize mappings and target factor (with right set of variables, unless given, e...
Definition: drwnTableFactorOps.cpp:201
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:1049
std::vector< drwnFactorOperation * > _computations
factor operations are owned by object (i.e., they will be deleted when the object is destroyed) ...
Definition: drwnTableFactorOps.h:120
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:1178
void initialize()
initialize mappings and target factor (with right set of variables, unless given, e...
Definition: drwnTableFactorOps.cpp:117
Shift all the entries in a factor so that the maximum is zero.
Definition: drwnTableFactorOps.h:395
Base class for implementing various operations on table factors. The derived classes store mappings b...
Definition: drwnTableFactorOps.h:28
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:134
Normalize all the entries in a factor to sum to one. Assumes non-negative entries.
Definition: drwnTableFactorOps.h:367
Add one (weighted) factor to another inline.
Definition: drwnTableFactorOps.h:228
Base class for implementing binary factor operations.
Definition: drwnTableFactorOps.h:73
Subtract one factor from another.
Definition: drwnTableFactorOps.h:198
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:854
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:1098
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:405
Base class for implementing n-ary factor operations.
Definition: drwnTableFactorOps.h:95
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:1033
virtual void initialize()
initialize mappings and target factor (with right set of variables, unless given, e...
Definition: drwnTableFactorOps.h:46
Divide one factor by another.
Definition: drwnTableFactorOps.h:170
Subtract one (weighted) factor from another inline.
Definition: drwnTableFactorOps.h:244
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:1117
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:588
Maximize over one or more variables in a factor.
Definition: drwnTableFactorOps.h:296
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:450
void initialize()
initialize mappings and target factor (with right set of variables, unless given, e...
Definition: drwnTableFactorOps.cpp:65
Factor which stores the value of each assignment explicitly in table form.
Definition: drwnTableFactor.h:144
virtual void execute()=0
peform the factor operation on the target
Add a weighted combination of factors.
Definition: drwnTableFactorOps.h:211
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:296
Multiply two or more factors together.
Definition: drwnTableFactorOps.h:155
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:1141
drwnTableFactor * target() const
return a pointer to the target factor
Definition: drwnTableFactorOps.h:41
defines an assignment to a subset of the variables
Definition: drwnVarAssignment.h:41
void initialize()
initialize mappings and target factor (with right set of variables, unless given, e...
Definition: drwnTableFactorOps.cpp:308
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:870
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:680
Creates a mapping between entries in two tables.
Definition: drwnTableFactorMapping.h:39
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:641
Marginalize out one or more variables in a factor.
Definition: drwnTableFactorOps.h:272
Reduce factor by oberving the value of one or more variables.
Definition: drwnTableFactorOps.h:344
Multiply one factor by another inline.
Definition: drwnTableFactorOps.h:260
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:556
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:1070
Exponentiate and normalize all the entries in a factor to sum to one.
Definition: drwnTableFactorOps.h:381
Executes an atomic operation by executing a sequence of factor operations.
Definition: drwnTableFactorOps.h:116
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:778
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:1160
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:320
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:765
Add two or more factors together.
Definition: drwnTableFactorOps.h:183
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:262
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:220
bool checkTarget()
check that the target is not empty and has the right set of variables for this operation ...
Definition: drwnTableFactorOps.cpp:972
Copy one factor onto another.
Definition: drwnTableFactorOps.h:135
void execute()
peform the factor operation on the target
Definition: drwnTableFactorOps.cpp:948