Allow setting custom leaf value for AlgebraicDecisionTree

release/4.3a0
Varun Agrawal 2022-11-07 15:42:24 -05:00
parent 8fa7f44361
commit 9cb225ac20
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ namespace gtsam {
static inline double id(const double& x) { return x; }
};
AlgebraicDecisionTree() : Base(1.0) {}
AlgebraicDecisionTree(double leaf = 1.0) : Base(leaf) {}
// Explicitly non-explicit constructor
AlgebraicDecisionTree(const Base& add) : Base(add) {}