Class PrefixCoderTransformationStrategy

    • Field Detail

      • codeWord

        protected final BitVector[] codeWord
      • char2symbol

        protected final it.unimi.dsi.fastutil.chars.Char2IntOpenHashMap char2symbol
      • prefixFree

        protected final boolean prefixFree
    • Constructor Detail

      • PrefixCoderTransformationStrategy

        public PrefixCoderTransformationStrategy​(PrefixCoder coder,
                                                 it.unimi.dsi.fastutil.chars.Char2IntOpenHashMap char2symbol,
                                                 boolean prefixFree)
        Create a new transformation strategy based on a prefix-free coder.
        Parameters:
        coder - a prefix-free coder.
        char2symbol - a map from character to symbols (the default returned value will be used for unknown symbols).
        prefixFree - whether it is required that the resulting bit vectors are prefix-free: in this case, symbol 0 will be appended to each string, and will not be allowed to appear in any string.
      • PrefixCoderTransformationStrategy

        protected PrefixCoderTransformationStrategy​(BitVector[] codeWord,
                                                    it.unimi.dsi.fastutil.chars.Char2IntOpenHashMap char2symbol,
                                                    boolean prefixFree)