Class ShannonEntropy


  • public final class ShannonEntropy
    extends java.lang.Object
    Helper functions for checking entropy.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShannonEntropy()
      Constructor of class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calculate​(byte[] bArray)
      Calculate entropy.
      void calculate​(java.lang.String in)
      Calculate entropy.
      double getEntropy()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ShannonEntropy

        public ShannonEntropy()
        Constructor of class.
    • Method Detail

      • getEntropy

        public double getEntropy()
      • calculate

        public void calculate​(java.lang.String in)
        Calculate entropy.
        Parameters:
        in - String to analyze
      • calculate

        public void calculate​(byte[] bArray)
        Calculate entropy.
        Parameters:
        bArray - byte array to analyze
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object