摘要:
package Entropy;import java.util.Scanner;public class Entropy { public static double Entropy(String str) { double H = 0.0; int sum = 0; int[] letter = new int[26]; str = str.toUpperCase(); for (int i = 0; i < str.length(); i++) { char c = str.charAt(i... 阅读全文