File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
arithmetic-coding-core/src/model Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ use std::ops::Range;
44
55use crate :: BitStore ;
66
7- /// A [`Model`] is used to calculate the probability of a given symbol occuring
8- /// in a sequence. The [`Model`] is used both for encoding and decoding. A
7+ /// A [`Model`] is used to calculate the probability of a given symbol occurring
8+ /// in a sequence.
9+ ///
10+ /// The [`Model`] is used both for encoding and decoding. A
911/// 'fixed-length' model always expects an exact number of symbols, and so does
1012/// not need to encode an EOF symbol.
1113///
@@ -124,7 +126,7 @@ pub trait Model {
124126 /// no-op by default.
125127 fn update ( & mut self , _symbol : & Self :: Symbol ) { }
126128
127- /// The total number of sumbols to encode
129+ /// The total number of symbols to encode
128130 fn length ( & self ) -> usize ;
129131}
130132
Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ use std::ops::Range;
44
55use crate :: BitStore ;
66
7- /// A [`Model`] is used to calculate the probability of a given symbol occuring
8- /// in a sequence. The [`Model`] is used both for encoding and decoding. A
7+ /// A [`Model`] is used to calculate the probability of a given symbol occurring
8+ /// in a sequence.
9+ ///
10+ /// The [`Model`] is used both for encoding and decoding. A
911/// 'max-length' model has a maximum length. The compressed size of a message
1012/// equal to the maximum length is larger than with a
1113/// [`fixed_length::Model`](crate::fixed_length::Model), but smaller than with a
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ use std::ops::Range;
55pub use crate :: fixed_length:: Wrapper ;
66use crate :: { fixed_length, BitStore } ;
77
8- /// A [`Model`] is used to calculate the probability of a given symbol occuring
9- /// in a sequence. The [`Model`] is used both for encoding and decoding. A
8+ /// A [`Model`] is used to calculate the probability of a given symbol occurring
9+ /// in a sequence.
10+ ///
11+ /// The [`Model`] is used both for encoding and decoding. A
1012/// 'one-shot' only ever encodes a single symbol, and so does
1113/// not need to encode an EOF symbol.
1214///
You can’t perform that action at this time.
0 commit comments