Export
parent
16131fe8c9
commit
41fdeb6c04
|
@ -20,6 +20,8 @@
|
|||
|
||||
namespace gtsam {
|
||||
|
||||
using Solution = DiscreteSearch::Solution;
|
||||
|
||||
/**
|
||||
* @brief Represents a node in the search tree for discrete search algorithms.
|
||||
*
|
||||
|
|
|
@ -24,9 +24,14 @@
|
|||
namespace gtsam {
|
||||
|
||||
/**
|
||||
* DiscreteSearch: Search for the K best solutions.
|
||||
*/
|
||||
class GTSAM_EXPORT DiscreteSearch {
|
||||
public:
|
||||
/**
|
||||
* @brief A solution to a discrete search problem.
|
||||
*/
|
||||
struct Solution {
|
||||
struct Solution {
|
||||
double error;
|
||||
DiscreteValues assignment;
|
||||
Solution(double err, const DiscreteValues& assign)
|
||||
|
@ -35,13 +40,8 @@ struct Solution {
|
|||
os << "[ error=" << sn.error << " assignment={" << sn.assignment << "}]";
|
||||
return os;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* DiscreteSearch: Search for the K best solutions.
|
||||
*/
|
||||
class DiscreteSearch {
|
||||
public:
|
||||
/**
|
||||
* Construct from a DiscreteBayesNet and K.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue