摘要: 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... 阅读全文
posted @ 2013-05-31 20:19 ilxx1988 阅读(143) 评论(0) 推荐(0) 编辑