Go to the documentation of this file.
56 public Conditional<HybridGaussianFactor, HybridGaussianConditional> {
87 const std::vector<GaussianConditional::shared_ptr> &
conditionals);
99 const std::vector<std::pair<Vector, double>> &
parameters);
113 const std::vector<std::pair<Vector, double>> &
parameters);
130 const std::vector<std::pair<Vector, double>> &
parameters);
166 const std::string &
s =
"HybridGaussianConditional\n",
180 return choose(discreteValues);
184 size_t nrComponents()
const;
203 std::shared_ptr<HybridGaussianFactor> likelihood(
249 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
251 friend class boost::serialization::access;
252 template <
class Archive>
253 void serialize(Archive &ar,
const unsigned int ) {
254 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(BaseFactor);
255 ar &BOOST_SERIALIZATION_BASE_OBJECT_NVP(BaseConditional);
266 :
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
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 Sat Nov 16 2024 04:02:26