#include <DiscreteFactor.h>
Base class for discrete probabilistic factors The most general one is the derived DecisionTreeFactor
DecisionTreeFactor, which represent a discrete distribution over a set of variables.
◆ DiscreteFactor() [1/2]
gtsam::DiscreteFactor::DiscreteFactor |
( |
| ) |
|
|
inline |
Default constructor creates empty factor
◆ DiscreteFactor() [2/2]
template<typename CONTAINER >
gtsam::DiscreteFactor::DiscreteFactor |
( |
const CONTAINER & |
keys | ) |
|
|
inline |
Construct from container of keys. This constructor is used internally from derived factor constructors, either from a container of keys or from a boost::assign::list_of.
◆ begin() [1/2]
Iterator at beginning of involved variable keys
◆ begin() [2/2]
Iterator at beginning of involved variable keys
◆ end() [1/2]
Iterator at end of involved variable keys
◆ end() [2/2]
Iterator at end of involved variable keys
◆ error()
double gtsam::DiscreteFactor::error |
( |
const HybridValues & |
c | ) |
const |
|
overridevirtual |
All factor types need to implement an error function. In factor graphs, this is the negative log-likelihood.
Reimplemented from gtsam::Factor.
◆ FromIterators()
template<typename ITERATOR >
static Factor gtsam::Factor::FromIterators |
( |
ITERATOR |
first, |
|
|
ITERATOR |
last |
|
) |
| |
|
inlinestaticprotectedinherited |
Construct factor from iterator keys. This is called internally from derived factor static factor methods, as a workaround for not being able to call the protected constructors above.
◆ FromKeys()
template<typename CONTAINER >
static Factor gtsam::Factor::FromKeys |
( |
const CONTAINER & |
keys | ) |
|
|
inlinestaticprotectedinherited |
Construct factor from container of keys. This is called internally from derived factor static factor methods, as a workaround for not being able to call the protected constructors above.
◆ html()
virtual std::string gtsam::DiscreteFactor::html |
( |
const KeyFormatter & |
keyFormatter = DefaultKeyFormatter , |
|
|
const Names & |
names = {} |
|
) |
| const |
|
pure virtual |
◆ keys()
- Returns
- keys involved in this factor
◆ markdown()
virtual std::string gtsam::DiscreteFactor::markdown |
( |
const KeyFormatter & |
keyFormatter = DefaultKeyFormatter , |
|
|
const Names & |
names = {} |
|
) |
| const |
|
pure virtual |
◆ size()
size_t gtsam::Factor::size |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the number of variables involved in this factor
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/gtsam-jlblanco-docs/checkouts/latest/gtsam/discrete/DiscreteFactor.h