Go to the documentation of this file.
69 <<
" assignments, heuristic=" << slot.
heuristic;
70 os <<
", factor:\n" << slot.
factor->markdown() << std::endl;
83 :
error(err), assignment(assign) {}
85 os <<
"[ error=" <<
sn.error <<
" assignment={" <<
sn.assignment <<
"}]";
108 bool buildJunctionTree =
false);
127 void print(
const std::string&
name =
"DiscreteSearch: ",
138 const std::vector<Slot>&
slots()
const {
return slots_; }
150 std::vector<Solution>
run(
size_t K = 1)
const;
159 double computeHeuristic();
std::vector< DiscreteValues > assignments
Annotation for function names.
static const DiscreteBayesNet bayesNet
DiscreteSearch: Search for the K best solutions.
static const DiscreteBayesTree bayesTree
const KeyFormatter & formatter
DiscreteValues assignment
double lowerBound() const
Return lower bound on the cost-to-go for the entire search.
friend std::ostream & operator<<(std::ostream &os, const Slot &slot)
ofstream os("timeSchurFactors.csv")
static const DiscreteFactorGraph factorGraph(bayesNet)
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
double lowerBound_
Lower bound on the cost-to-go for the entire search.
DiscreteSearch::Solution Solution
void print(const Matrix &A, const string &s, ostream &stream)
Elimination tree for discrete factors.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Discrete Bayes Tree, the result of eliminating a DiscreteJunctionTree.
static enum @1096 ordering
Solution(double err, const DiscreteValues &assign)
std::shared_ptr< DiscreteFactor > shared_ptr
shared_ptr to this class
const std::vector< Slot > & slots() const
Read access to the slots.
A Bayes tree representing a Discrete distribution.
DiscreteFactor::shared_ptr factor
std::vector< Slot > slots_
The slots to fill in the search.
friend std::ostream & operator<<(std::ostream &os, const Solution &sn)
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:01:36