#include <HybridFactor.h>
Base class for truly hybrid probabilistic factors
Examples:
a mixture of Gaussian and discrete distributions over a set of variables.
- Symbolic factors, used to represent a graph structure, such as
◆ HybridFactor() [1/4]
gtsam::HybridFactor::HybridFactor |
( |
| ) |
|
|
default |
Default constructor creates empty factor
◆ HybridFactor() [2/4]
gtsam::HybridFactor::HybridFactor |
( |
const KeyVector & |
keys | ) |
|
|
explicit |
Construct hybrid factor from continuous keys.
- Parameters
-
keys | Vector of continuous keys. |
◆ HybridFactor() [3/4]
gtsam::HybridFactor::HybridFactor |
( |
const DiscreteKeys & |
discreteKeys | ) |
|
|
explicit |
Construct hybrid factor from discrete keys.
- Parameters
-
keys | Vector of discrete keys. |
◆ HybridFactor() [4/4]
gtsam::HybridFactor::HybridFactor |
( |
const KeyVector & |
continuousKeys, |
|
|
const DiscreteKeys & |
discreteKeys |
|
) |
| |
Construct a new Hybrid Factor object.
- Parameters
-
continuousKeys | Vector of keys for continuous variables. |
discreteKeys | Vector of keys for discrete variables. |
◆ 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()
virtual double gtsam::Factor::error |
( |
const HybridValues & |
c | ) |
const |
|
virtualinherited |
◆ 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.
◆ keys()
- Returns
- keys involved in this factor
◆ 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/hybrid/HybridFactor.h