You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) An optional parameter named save_stages is added to the constructor of the ArithmeticEncoding class. If True, then the intervals of each stage are saved in a list. Note that setting save_stages=True may cause memory overflow if the message is large
2) The decoded message returned by the decode() method is always a list.
3) The order of the returned values by the the encode() and decode() method changed.
4) Added an example in the example_image.py script to encode and decode an image.
frequency_table: Frequency table as a dictionary where key is the symbol and value is the frequency.
11
+
save_stages: If True, then the intervals of each stage are saved in a list. Note that setting save_stages=True may cause memory overflow if the message is large
12
+
"""
13
+
14
+
self.save_stages=save_stages
15
+
if(save_stages==True):
16
+
print("WARNING: Setting save_stages=True may cause memory overflow if the message is large.")
0 commit comments