摘要: When the elements in a cell matrix is numeric, like: There are two tricky points in this script. 1. fopen('celldata.txt','wt') is really important. Wh 阅读全文
posted @ 2015-05-27 15:54 此间漫步 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 测试各种方法读取xlxs文件此文参考:http://www.milanor.net/blog/?p=779 Save Excel files into csv file> # Method 1 transform to csv format> # Start the clock!> ptm T2 # Stop the clock> proc.time() - ptm user syste... 阅读全文
posted @ 2014-06-23 14:08 此间漫步 阅读(597) 评论(0) 推荐(0) 编辑
摘要: Chi-SquareChi-Square distribution testThis Chi-Square test is used to assess fittingChi-Squared value is: : is the observed value of class i: is the expected value of class iif is close to , is 0, ... 阅读全文
posted @ 2014-06-13 16:10 此间漫步 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: Refer to : http://en.wikipedia.org/wiki/Student%27s_t-test http://mathworld.wolfram.com/Pairedt-Test.html One-sample t-test A one-sample location test 阅读全文
posted @ 2014-06-12 11:52 此间漫步 阅读(760) 评论(0) 推荐(0) 编辑
摘要: a = 100v3=runif(100)ggplot(data.frame(v3), aes(x = v3))+geom_density() a=100 a=1000 a=10000 a=100000越多的采样点得到的分布越接近均匀分布,其他分布采样也是一样 阅读全文
posted @ 2014-06-10 17:12 此间漫步 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 最小生成树生成算法 【申明】以下内容转载自:http://squirrelrao.iteye.com/blog/1044867Prim算法和Kruskal算法都能从连通图找出最小生成树。区别在于Prim算法是挨个找,而Kruskal是先排序再找。一、Prim算法:Prim算法实现的是找出一个有权重连通图中的最小生成树,即:具有最小权重且连接到所有结点的树。(强调的是树,树是没有回路的)。Prim算法是这样来做的:首先以一个结点作为最小生成树的初始结点,然后以迭代的方式找出与最小生成树中各结点权重最小边,并加入到最小生成树中。加入之后如果产生回路则跳过这条边,选择下一个结点。当所有结点都加入到最 阅读全文
posted @ 2014-04-10 14:59 此间漫步 阅读(224) 评论(0) 推荐(0) 编辑
摘要: The solution of Ax=b A is matrix whose size is m-by-n, b is a n-by-1 column vector. The solution x is a n-by-1 column vectorMldivide is a matlab function, which is also denoted as"\". It solve systems of linear equations Ax = B for x. The method is called left divide., The A-1 is on the le 阅读全文
posted @ 2014-03-26 20:29 此间漫步 阅读(310) 评论(0) 推荐(0) 编辑
摘要: The solution of Ax=b Mldivide is a matlab function, which is also denoted as"\". It solve systems of linear equations Ax = B for x. The method is called left divide., The A-1 is on the left of b, this is the reason called left divide. But the A-1 exists only when A is a square matrix. When 阅读全文
posted @ 2014-03-26 18:01 此间漫步 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1 <html> 2 <head> 3 <title>This is my first web</title> 4 </head> 5 <body> 6 <table bgcolor="yellow" border="1" bordercolor="blue" cellspacing="0"> 7 <thead> 8 <caption valign="center" >XX大学2004-2 阅读全文
posted @ 2013-05-07 19:53 此间漫步 阅读(294) 评论(0) 推荐(0) 编辑