diff --git a/gtsam/discrete/DecisionTree.h b/gtsam/discrete/DecisionTree.h index 53782ef5e3..d655756b86 100644 --- a/gtsam/discrete/DecisionTree.h +++ b/gtsam/discrete/DecisionTree.h @@ -234,6 +234,8 @@ namespace gtsam { * * @param f side-effect taking a value. * + * @note Due to pruning, leaves might not exhaust choices. + * * Example: * int sum = 0; * auto visitor = [&](int y) { sum += y; }; @@ -247,6 +249,8 @@ namespace gtsam { * * @param f side-effect taking an assignment and a value. * + * @note Due to pruning, leaves might not exhaust choices. + * * Example: * int sum = 0; * auto visitor = [&](const Assignment& choices, int y) { sum += y; }; @@ -264,6 +268,7 @@ namespace gtsam { * @return X final value for accumulator. * * @note X is always passed by value. + * @note Due to pruning, leaves might not exhaust choices. * * Example: * auto add = [](const double& y, double x) { return y + x; };