diff --git a/gtsam/discrete/DecisionTreeFactor.h b/gtsam/discrete/DecisionTreeFactor.h index e59552007..95054bcdb 100644 --- a/gtsam/discrete/DecisionTreeFactor.h +++ b/gtsam/discrete/DecisionTreeFactor.h @@ -104,7 +104,7 @@ namespace gtsam { return ADT::operator()(values); } - /// Evaluate probability density, sugar. + /// Evaluate probability distribution, sugar. double operator()(const DiscreteValues& values) const override { return ADT::operator()(values); } diff --git a/gtsam/discrete/DiscreteBayesTree.h b/gtsam/discrete/DiscreteBayesTree.h index f65508a1a..b0c3dfb7d 100644 --- a/gtsam/discrete/DiscreteBayesTree.h +++ b/gtsam/discrete/DiscreteBayesTree.h @@ -63,7 +63,7 @@ class GTSAM_EXPORT DiscreteBayesTreeClique /* ************************************************************************* */ /** - * @brief A Bayes tree representing a Discrete density. + * @brief A Bayes tree representing a Discrete distribution. * @ingroup discrete */ class GTSAM_EXPORT DiscreteBayesTree diff --git a/gtsam/discrete/DiscreteConditional.cpp b/gtsam/discrete/DiscreteConditional.cpp index c40573ee8..5abc094fb 100644 --- a/gtsam/discrete/DiscreteConditional.cpp +++ b/gtsam/discrete/DiscreteConditional.cpp @@ -266,7 +266,7 @@ void DiscreteConditional::sampleInPlace(DiscreteValues* values) const { size_t DiscreteConditional::sample(const DiscreteValues& parentsValues) const { static mt19937 rng(2); // random number generator - // Get the correct conditional density + // Get the correct conditional distribution ADT pFS = choose(parentsValues, true); // P(F|S=parentsValues) // TODO(Duy): only works for one key now, seems horribly slow this way diff --git a/gtsam/discrete/DiscreteMarginals.h b/gtsam/discrete/DiscreteMarginals.h index 7bb2cc6f8..b97e60805 100644 --- a/gtsam/discrete/DiscreteMarginals.h +++ b/gtsam/discrete/DiscreteMarginals.h @@ -41,7 +41,7 @@ class DiscreteMarginals { DiscreteMarginals() {} /** Construct a marginals class. - * @param graph The factor graph defining the full joint density on all variables. + * @param graph The factor graph defining the full joint distribution on all variables. */ DiscreteMarginals(const DiscreteFactorGraph& graph) { bayesTree_ = graph.eliminateMultifrontal(); diff --git a/gtsam/discrete/Signature.h b/gtsam/discrete/Signature.h index 963843ab2..df175bc10 100644 --- a/gtsam/discrete/Signature.h +++ b/gtsam/discrete/Signature.h @@ -25,7 +25,7 @@ namespace gtsam { /** - * Signature for a discrete conditional density, used to construct conditionals. + * Signature for a discrete conditional distribution, used to construct conditionals. * * The format is (Key % string) for nodes with no parents, * and (Key | Key, Key = string) for nodes with parents.