Class CharDistributionAnalysis

    • Field Detail

      • freqChars

        private int freqChars
      • totalChars

        private int totalChars
      • charToFreqOrder

        protected int[] charToFreqOrder
      • typicalDistributionRatio

        protected float typicalDistributionRatio
      • done

        protected boolean done
    • Constructor Detail

      • CharDistributionAnalysis

        public CharDistributionAnalysis()
    • Method Detail

      • handleOneChar

        public void handleOneChar​(byte[] buf,
                                  int offset,
                                  int charLength)
      • getConfidence

        public float getConfidence()
      • reset

        public void reset()
      • gotEnoughData

        public boolean gotEnoughData()
      • getOrder

        protected abstract int getOrder​(byte[] buf,
                                        int offset)