pysal.explore.esda.
Moran_Local_BV
(x, y, w, transformation='r', permutations=999, geoda_quads=False)[源代码]¶二元局部Moran统计
参数: |
|
---|
实例
>>> import pysal.lib
>>> import numpy as np
>>> np.random.seed(10)
>>> w = pysal.lib.io.open(pysal.lib.examples.get_path("sids2.gal")).read()
>>> f = pysal.lib.io.open(pysal.lib.examples.get_path("sids2.dbf"))
>>> x = np.array(f.by_col['SIDR79'])
>>> y = np.array(f.by_col['SIDR74'])
>>> from pysal.explore.esda.moran import Moran_Local_BV
>>> lm =Moran_Local_BV(x, y, w, transformation = "r", permutations = 99)
>>> lm.q[:10]
array([3, 4, 3, 4, 2, 1, 4, 4, 2, 4])
>>> lm = Moran_Local_BV(x, y, w, transformation = "r", permutations = 99, geoda_quads=True)
>>> lm.q[:10]
array([2, 4, 2, 4, 3, 1, 4, 4, 3, 4])
注意:随机组件结果在架构中的值略有不同,因此结果已从doctest中删除,并将移动到以架构为条件的单元测试中。
属性: |
|
---|
方法
by_col \(df ,x [,y ,w ,inplace ,pValue ,outvals ]) |
在数据帧上计算Moran_本地_bv统计的函数 |
calc |
__init__
(x, y, w, transformation='r', permutations=999, geoda_quads=False)[源代码]¶初始化自身。请参阅帮助(键入(self))以获得准确的签名。
方法
__init__ \(X,Y,W[,转换,…]) |
初始化自身。 |
by_col \(df ,x [,y ,w ,inplace ,pValue ,outvals ]) |
在数据帧上计算Moran_本地_bv统计的函数 |
calc \(W,ZX,ZY) |