pysal.explore.spaghetti.NetworkBase

class pysal.explore.spaghetti.NetworkBase(ntw, pointpattern, nsteps=10, permutations=99, threshold=0.5, distribution='poisson', lowerbound=None, upperbound=None)[源代码]

用于对意大利面条执行网络分析的基本对象。网络对象。

参数:
ntw : spaghetti.Network

意大利面网络对象。

pointpattern : spaghetti.network.PointPattern

意大利面点图案对象。

nsteps : 利息

计算最近邻点数的步数。

permutations : 利息

要执行的排列数(默认为99)。

门槛 : 浮动

计算重要性的级别。--0.5%为97.5%和2.5%

distribution : STR

随机点抽样的分布--均匀分布或泊松分布

lowerbound : 浮动

计算函数的下限。(默认值0)。

upperbound : 浮动

计算函数的上限。默认为观测到的最大最近邻距离。

属性:
sim : numpy.ndarray

模拟距离矩阵

npts : 利息

pointpattern.npoints

xaxis : numpy.ndarray

观测值的X轴

observed : numpy.ndarray

观测值的Y轴

方法

computeenvelope () 计算信封的上下限
setbounds (最近) 设置上下限
validatedistribution () 支持统计分布
__init__(ntw, pointpattern, nsteps=10, permutations=99, threshold=0.5, distribution='poisson', lowerbound=None, upperbound=None)[源代码]

初始化自身。请参阅帮助(键入(self))以获得准确的签名。

方法

__init__ \(ntw,pointpattern[,nsteps,…]) 初始化自身。
computeenvelope () 计算信封的上下限
setbounds (最近) 设置上下限
validatedistribution () 支持统计分布