Change alias sampling comment

Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
This commit is contained in:
Patrick Myers 2022-12-21 15:39:13 -06:00 committed by GitHub
parent 19c807ade2
commit a953938bdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();