Go to the documentation of this file.
56 public Conditional<HybridGaussianFactor, HybridGaussianConditional> {
90 const std::vector<GaussianConditional::shared_ptr> &
conditionals);
102 const std::vector<std::pair<Vector, double>> &
parameters);
116 const std::vector<std::pair<Vector, double>> &
parameters);
133 const std::vector<std::pair<Vector, double>> &
parameters);
170 const std::string &
s =
"HybridGaussianConditional\n",
184 return choose(discreteValues);
188 size_t nrComponents()
const;
207 std::shared_ptr<HybridGaussianFactor> likelihood(
251 Helper &&helper,
bool pruned =
false);
256 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
258 friend class boost::serialization::access;
259 template <
class Archive>
260 void serialize(Archive &ar,
const unsigned int ) {
261 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(BaseFactor);
262 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(BaseConditional);
273 :
public Testable<HybridGaussianConditional> {};
Conditional Gaussian Base class.
std::shared_ptr< This > shared_ptr
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::shared_ptr< HybridFactor > shared_ptr
shared_ptr to this class
const KeyFormatter & formatter
DiscreteKeys is a set of keys that can be assembled using the & operator.
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
A set of GaussianFactors, indexed by a set of discrete keys.
const std::vector< GaussianConditional::shared_ptr > conditionals
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
void print(const Matrix &A, const string &s, ostream &stream)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
static ConjugateGradientParameters parameters
Decision Tree for use in DiscreteFactors.
A conditional of gaussian conditionals indexed by discrete variables, as part of a Bayes Network....
double operator()(const HybridValues &values) const
Evaluate probability density, sugar.
specialized key for discrete variables
bool pruned() const
Return true if the conditional has already been pruned.
const gtsam::Symbol key('X', 0)
a decision tree is a function from assignments to values.
std::set< DiscreteKey > DiscreteKeysAsSet(const DiscreteKeys &discreteKeys)
Return the DiscreteKey vector as a set.
GaussianConditional::shared_ptr operator()(const DiscreteValues &discreteValues) const
Syntactic sugar for choose.
std::pair< Key, size_t > DiscreteKey
Implementation of a discrete-conditioned hybrid factor. Implements a joint discrete-continuous factor...
std::shared_ptr< This > shared_ptr
shared_ptr to this class
double negLogConstant() const override
Return log normalization constant in negative log space.
Base class for conditional densities.
std::uint64_t Key
Integer nonlinear key type.
static const T & choose(int layout, const T &col, const T &row)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:40