From a953938bdfdf82918b517d9fc6c820ad1ff44ba1 Mon Sep 17 00:00:00 2001 From: Patrick Myers <90068356+myerspat@users.noreply.github.com> Date: Wed, 21 Dec 2022 15:39:13 -0600 Subject: [PATCH] Change alias sampling comment Co-authored-by: Paul Wilson --- src/distribution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/distribution.cpp b/src/distribution.cpp index cd3e3fe72a..4634aa9d62 100644 --- a/src/distribution.cpp +++ b/src/distribution.cpp @@ -71,7 +71,7 @@ void Discrete::init_alias() { p_[k] += p_[j] - 1.0; alias_[j] = k; - // Remove last vector element and or move large index to small vector + // Move large index to small vector, if it is no longer large if (p_[k] < 1.0) { small.push_back(k); large.pop_back();