31using GaussianFactorGraphValuePair = std::pair<GaussianFactorGraph, double>;
35 :
public DecisionTree<Key, GaussianFactorGraphValuePair> {
50 template <
class FACTOR>
90 void print(
const std::string& s =
"",
100 double tol = 1e-9)
const;
122#if GTSAM_ENABLE_BOOST_SERIALIZATION
124 friend class boost::serialization::access;
125 template <
class Archive>
126 void serialize(Archive& ar,
const unsigned int ) {
127 ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
135 :
public Testable<HybridGaussianProductFactor> {};
145std::istream&
operator>>(std::istream& is, GaussianFactorGraphValuePair& pair);
Decision Tree for use in DiscreteFactors.
Linear Factor Graph where all factors are Gaussians.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition Key.cpp:30
void print(const Matrix &A, const string &s, ostream &stream)
print without optional string, must specify cout yourself
Definition Matrix.cpp:143
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition Key.h:35
istream & operator>>(istream &inputStream, Matrix &destinationMatrix)
Read a matrix from an input stream, such as a file.
Definition Matrix.cpp:161
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition Group.h:37
Template to create a binary predicate.
Definition Testable.h:112
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:152
Implementation of a discrete-conditioned hybrid factor.
Definition HybridGaussianFactor.h:60
Alias for DecisionTree of GaussianFactorGraphs and their scalar sums.
Definition HybridGaussianProductFactor.h:35
HybridGaussianProductFactor()=default
Default constructor.
HybridGaussianProductFactor(const std::shared_ptr< FACTOR > &factor)
Construct from a single factor.
Definition HybridGaussianProductFactor.h:51
HybridGaussianProductFactor(Base &&tree)
Construct from DecisionTree.
Definition HybridGaussianProductFactor.h:58
std::shared_ptr< This > shared_ptr
shared_ptr to this class
Definition GaussianFactor.h:42
A Linear Factor Graph is a factor graph where all factors are Gaussian, i.e.
Definition GaussianFactorGraph.h:77