default string for AlgebraicDecisionTree::print

release/4.3a0
Varun Agrawal 2022-10-31 15:37:06 -04:00
parent c41b58fc98
commit aa1c65d0dc
1 changed files with 3 additions and 3 deletions

View File

@ -156,9 +156,9 @@ namespace gtsam {
} }
/// print method customized to value type `double`. /// print method customized to value type `double`.
void print(const std::string& s, void print(const std::string& s = "",
const typename Base::LabelFormatter& labelFormatter = const typename Base::LabelFormatter& labelFormatter =
&DefaultFormatter) const { &DefaultFormatter) const {
auto valueFormatter = [](const double& v) { auto valueFormatter = [](const double& v) {
return (boost::format("%4.8g") % v).str(); return (boost::format("%4.8g") % v).str();
}; };