/**
  * Run the EntropyCalc routine against two strings and format the output for display. This is
  * intended to show how the actual entropy of the file compares to the entropy of the signature.
  *
  * @param label1
  * @param f1
  * @param label2
  * @param f2
  * @return
  */
 private String computeEntropy(String label1, String f1, String label2, String f2) {
   StringBuffer sb = new StringBuffer();
   double f1H = EntropyCalc.calculateShannonEntropy(f1);
   double f2H = EntropyCalc.calculateShannonEntropy(f2);
   sb.append("\t");
   sb.append(label1);
   sb.append(String.format("%4f", f1H));
   sb.append("\t");
   sb.append(label2);
   sb.append(String.format("%4f", f2H));
   return sb.toString();
 }
 private double computeEntropy(String f2) {
   double f2H = EntropyCalc.calculateShannonEntropy(f2);
   return f2H;
 }