Package it.unimi.dsi.sux4j.mph.codec
Class Codec.Unary
- java.lang.Object
-
- it.unimi.dsi.sux4j.mph.codec.Codec.Unary
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCodec.Unary.Coder-
Nested classes/interfaces inherited from interface it.unimi.dsi.sux4j.mph.codec.Codec
Codec.Binary, Codec.Decoder, Codec.Gamma, Codec.Huffman, Codec.Unary, Codec.ZeroCodec
-
-
Constructor Summary
Constructors Constructor Description Unary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Codec.Unary.CodergetCoder(it.unimi.dsi.fastutil.longs.Long2LongMap frequencies)Returns a coder for a specific map from symbols to frequencies.
-
-
-
Method Detail
-
getCoder
public Codec.Unary.Coder getCoder(it.unimi.dsi.fastutil.longs.Long2LongMap frequencies)
Description copied from interface:CodecReturns a coder for a specific map from symbols to frequencies.Note that even instantaneous codes (such as
Codec.Unary) need to know the set of symbols, as the returned coder needs to known the maximum codeword length.
-
-