moved stuff to cpp file

release/4.3a0
Frank Dellaert 2012-09-16 04:37:04 +00:00
parent 896d006ddf
commit 44c66cb0cb
2 changed files with 18 additions and 13 deletions

View File

@ -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 {

View File

@ -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