moved alias method to function and fixed sampling bug

This commit is contained in:
myerspat 2022-12-19 17:24:33 -05:00
parent 907cf7df4d
commit 90509d928b
2 changed files with 14 additions and 5 deletions

View file

@ -58,6 +58,9 @@ private:
//! Normalize distribution so that probabilities sum to unity
void normalize();
//! Initialize alias tables for distribution
void init_alias();
};
//==============================================================================