From b2b85a7ede75c3d411115d4c87a632ce378fec1f Mon Sep 17 00:00:00 2001 From: Daniel Severo Date: Wed, 18 Jan 2023 14:14:06 -0500 Subject: [PATCH] Update multiset.py --- craystack/codecs/multiset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/craystack/codecs/multiset.py b/craystack/codecs/multiset.py index f81662d..03de0c8 100644 --- a/craystack/codecs/multiset.py +++ b/craystack/codecs/multiset.py @@ -183,8 +183,8 @@ def SamplingWithoutReplacement(): ''' Encodes and pops onto the ANS state using the empirical distribution of symbols in the multiset. - Before an push, the symbol to be pushd is inserted into the multiset. - After a pop, the popd symbol is removed from the multiset. Therefore, + Before a push, the symbol to be pushed is inserted into the multiset. + After a pop, the poped symbol is removed from the multiset. Therefore, a pop performs sampling without replacement, while push inverts it. The context is the multiset, i.e. *context = multiset '''