2017年5月17日
摘要: import kmeans.kmeans;import kmeans.kmeans_data;import kmeans.kmeans_param; public class Kmeans { public static void main(String[] args) { double[][] p 阅读全文
posted @ 2017-05-17 16:09 ALT_LB 阅读(2562) 评论(0) 推荐(0)
  2017年5月15日
摘要: File f=new File(path); Map<String,Integer>map=new HashMap<>(); Version matchVersion = Version.LUCENE_31; Analyzer analyzer = new StopAnalyzer(matchVer 阅读全文
posted @ 2017-05-15 14:40 ALT_LB 阅读(1845) 评论(0) 推荐(0)
  2017年5月5日
摘要: List<String> list = new ArrayList<String>(); list.add("1"); list.add("4"); list.add("3"); list.add("2"); String[] tt = new String[4]; list.toArray(tt) 阅读全文
posted @ 2017-05-05 08:27 ALT_LB 阅读(7073) 评论(0) 推荐(1)
  2017年5月4日
摘要: Map<String,Double>map=new TreeMap<String,Double>(); map.put("mit", 3795104.300); map.put("ramin", 6.155); map.put("research", 889.159); map.put("mix", 阅读全文
posted @ 2017-05-04 09:16 ALT_LB 阅读(5575) 评论(0) 推荐(0)
  2017年4月26日
摘要: public class Demo { public static void main(String[] args) { HarmonySearch hs = new HarmonySearch(); hs.setBW(.2); hs.setNVAR(5); hs.setHMCR(.9); hs.s 阅读全文
posted @ 2017-04-26 15:29 ALT_LB 阅读(686) 评论(0) 推荐(0)
  2017年4月25日
摘要: Robot rb = new Robot(); rb.delay(3000); int x = 40; Desktop desktop = Desktop.getDesktop(); if (Desktop.isDesktopSupported() && desktop.isSupported(De 阅读全文
posted @ 2017-04-25 16:30 ALT_LB 阅读(2504) 评论(0) 推荐(0)
  2017年4月17日
摘要: File source=new File("C:\\test.txt"); File target=new File("D:\\test.txt"); source.renameto(target); 这样实现文件的移动; 阅读全文
posted @ 2017-04-17 08:16 ALT_LB 阅读(8347) 评论(3) 推荐(0)
  2017年4月13日
摘要: public static void IKAnalysis(String str) throws IOException { Analyzer anal=new IKAnalyzer(true); StringReader reader=new StringReader(str); //分词 Tok 阅读全文
posted @ 2017-04-13 15:27 ALT_LB 阅读(2456) 评论(0) 推荐(0)
  2017年4月7日
摘要: double v=3.1415926; DecimalFormat df=new DecimalFormat(".####"); double dv=Double.valueOf(df.format(v)); 输出结果为:3.1415 import java.util.*; System.out.p 阅读全文
posted @ 2017-04-07 10:21 ALT_LB 阅读(451) 评论(0) 推荐(0)
  2017年3月27日
摘要: List<String> list1 =new ArrayList<>(); list1.add("aaaa"); list1.add("bbbb"); list1.add("cccc"); List<String> list2 =new ArrayList(); list2.add("cccc") 阅读全文
posted @ 2017-03-27 17:42 ALT_LB 阅读(2721) 评论(0) 推荐(0)