moved stuff to cpp file
parent
896d006ddf
commit
44c66cb0cb
|
|
@ -57,6 +57,19 @@ namespace gtsam {
|
|||
signature.discreteKeysParentsFirst(), signature.cpt()) {
|
||||
}
|
||||
|
||||
/* ******************************************************************************** */
|
||||
void DiscreteConditional::print(const std::string& s, const IndexFormatter& formatter) const {
|
||||
std::cout << s << std::endl;
|
||||
IndexConditional::print(s, formatter);
|
||||
Potentials::print(s);
|
||||
}
|
||||
|
||||
/* ******************************************************************************** */
|
||||
bool DiscreteConditional::equals(const DiscreteConditional& other, double tol) const {
|
||||
return IndexConditional::equals(other, tol)
|
||||
&& Potentials::equals(other, tol);
|
||||
}
|
||||
|
||||
/* ******************************************************************************** */
|
||||
Potentials::ADT DiscreteConditional::choose(
|
||||
const Values& parentsValues) const {
|
||||
|
|
|
|||
|
|
@ -73,20 +73,12 @@ namespace gtsam {
|
|||
/// @name Testable
|
||||
/// @{
|
||||
|
||||
/** GTSAM-style print */
|
||||
void print(const std::string& s = "Discrete Conditional: ",
|
||||
const IndexFormatter& formatter
|
||||
=DefaultIndexFormatter) const {
|
||||
std::cout << s << std::endl;
|
||||
IndexConditional::print(s, formatter);
|
||||
Potentials::print(s);
|
||||
}
|
||||
/// GTSAM-style print
|
||||
void print(const std::string& s = "Discrete Conditional: ",
|
||||
const IndexFormatter& formatter = DefaultIndexFormatter) const;
|
||||
|
||||
/** GTSAM-style equals */
|
||||
bool equals(const DiscreteConditional& other, double tol = 1e-9) const {
|
||||
return IndexConditional::equals(other, tol)
|
||||
&& Potentials::equals(other, tol);
|
||||
}
|
||||
/// GTSAM-style equals
|
||||
bool equals(const DiscreteConditional& other, double tol = 1e-9) const;
|
||||
|
||||
/// @}
|
||||
/// @name Standard Interface
|
||||
|
|
|
|||
Loading…
Reference in New Issue