Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions craystack/codecs/multiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 'popped'.

a pop performs sampling without replacement, while push inverts it.
The context is the multiset, i.e. *context = multiset
'''
Expand Down