Class HuffmanBasic

    • Field Detail

      • pmf

        public Parameter pmf
        The probability mass function. This parameter is an array of doubles. Each element should be positive and the sum of all elements should be 1.0. The default value is {0.5, 0.5}.
      • alphabet

        public Parameter alphabet
        The alphabet of the input. This parameter is an ArrayToken. Its default value is {0, 1}.
      • huffmanCodeBook

        public TypedIOPort huffmanCodeBook
        A port that produces the Huffman code book generated based on the probability mass function. It is an array of strings.
      • _codeBook

        protected java.lang.String[] _codeBook
        The huffman code book.
      • _parametersInvalid

        protected boolean _parametersInvalid
        Flag that indicates if the parameters are invalid. If it is true, then a new code book needs to be generated.
      • _pmf

        protected double[] _pmf
        The probability mass function.