Go to the documentation of this file.
62 template<
class FACTOR,
class DERIVEDCONDITIONAL>
77 typedef std::pair<typename FACTOR::const_iterator, typename FACTOR::const_iterator>
ConstFactorRange;
84 typename FACTOR::const_iterator
begin()
const {
return range_.first; }
85 typename FACTOR::const_iterator
end()
const {
return range_.second; }
141 throw std::invalid_argument(
"Requested Conditional::firstFrontalKey from a conditional with zero frontal keys");
219 template <
class VALUES>
231 FACTOR&
asFactor() {
return static_cast<FACTOR&
>(
static_cast<DERIVEDCONDITIONAL&
>(*this)); }
234 const FACTOR&
asFactor()
const {
return static_cast<const FACTOR&
>(
static_cast<const DERIVEDCONDITIONAL&
>(*this)); }
236 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
238 friend class boost::serialization::access;
239 template<
class ARCHIVE>
240 void serialize(ARCHIVE & ar,
const unsigned int ) {
void print(const std::string &s="Conditional", const KeyFormatter &formatter=DefaultKeyFormatter) const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
bool equals(const This &c, double tol=1e-9) const
bool operator==(const OTHER &rhs) const
const FACTOR & asFactor() const
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
ConstFactorRangeIterator(ConstFactorRange const &x)
const KeyFormatter & formatter
const auto & front() const
Conditional(size_t nrFrontals)
virtual double evaluate(const HybridValues &c) const
FACTOR::const_iterator begin() const
double operator()(const HybridValues &x) const
Evaluate probability density, sugar.
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
virtual double logProbability(const HybridValues &c) const
Conditional< FACTOR, DERIVEDCONDITIONAL > This
Typedef to this class.
FACTOR::const_iterator endParents() const
ConstFactorRangeIterator()=delete
FACTOR::const_iterator endFrontals() const
std::pair< typename FACTOR::const_iterator, typename FACTOR::const_iterator > ConstFactorRange
ConstFactorRangeIterator Frontals
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
FACTOR::iterator beginParents()
static bool CheckInvariants(const DERIVEDCONDITIONAL &conditional, const VALUES &x)
FACTOR::iterator endFrontals()
FACTOR::const_iterator beginFrontals() const
size_t nrFrontals() const
FACTOR::const_iterator end() const
FACTOR::const_iterator beginParents() const
Key firstFrontalKey() const
FACTOR::iterator beginFrontals()
Double_ distance(const OrientedPlane3_ &p)
std::uint64_t Key
Integer nonlinear key type.
virtual double negLogConstant() const
All conditional types need to implement this as the negative log of the normalization constant to mak...
Frontals frontals() const
FACTOR::iterator endParents()
bool equal(const T &obj1, const T &obj2, double tol)
ConstFactorRangeIterator Parents
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:32:09