| 所在主题: | |
| 文件名: moransI.zip | |
| 资料下载链接地址: https://bbs.pinggu.org/a-1558725.html | |
本附件包括:
|
|
| 附件大小: | |
|
已知有13个地区,它们的人均GDP为A=[26998;30840;34892;41099;45444;50467;58204;64491;66940;73856;81658;87475;19141;]
临界矩阵为 W=[0,1,0,0,1,0,1,0,1;1,0,0,1,1,0,0,1,0;0,0,0,0,0,0,1,0,0;0,1,0,0,0,1,0,0,0;1,1,0,0,0,0,1,1,0;0,0,0,1,0,0,0,0,0;1,0,1,0,1,0,0,1,1;0,1,0,0,1,0,1,0,0;1,0,0,0,0,0,1,0,0;1,0,0,1,0,1,0,0,0;0,0,0,0,0,0,0,0,0;0,0,1,0,0,0,0,0,0;0,0,1,0,0,0,1,1,0;] 然后我找到了Moran_I指数的函数 HELP morans_I PURPOSE: calculate global Moran's I for an input grid (matrix) by calculating all local Moran's I for a given moving windows size using a weight matrix. ------------------------------------------------------------------- USAGE: M = moransI(grid, W, s); where: [grid] is the matrix to analyse [W] is the normalized weight matrix of the size the local Moran's I will be calculated for (uneven sized!) [s] is an optional flag to use zscores of input values for calculation. Set to 'true' if zscores of local grid should be calculated. Leave blank if not desired or input values are already standardized. ------------------------------------------------------------------------- OUTPUTS: [M] matrix of all local Moran's I ------------------------------------------------------------------- NOTES: Weight matrix needs to be 'moving window' style, not contiguity matrix: Moran's I is calculated and weighted for neighbours to center cell. Matrix needs to be normalized (weights sum to 1) and center cell weight will be set to 0 if not already. Uses localmoran.m -> Use nanmean(M(:)) to get the average global Moran's I. See Anselin (1995, 'LISA.', Geogr. Analysis 27(2),p.93f) for details on standardized variables in calculation of local Moran's I. EXAMPLE:M = moransI(rand(20,20),ones(5,5),'true') Felix Hebeler, Geography Dept.,de University Zurich, March 2006. 请问使用M=Morans_I(A,W,'ture')计算吗?为什么算出来都是NaN? 求大神帮助 |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明