Sindex(SpatialVx)
Sindex()所属R语言包:SpatialVx
Shape index
形状指数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculate the shape index (Sindex) as described in AghaKouchak et al. (2011)
计算所述在AghaKouchak等的形状的指数(Sindex)。 (2011)
用法----------Usage----------
Sindex(x, thresh = NULL, loc = NULL)
参数----------Arguments----------
参数:x
m X n numeric matrix giving the field for which the shape index is to be calculated.
米X n的数值矩阵给要被计算的形状索引的字段的。
参数:thresh
numeric giving a threshold under which (and including, i.e., <=) all values are set to zero, and the shape index is calculated for the non-zero (positive-valued) grid-points.
数字给出了一个阈值(包括,即,<=)所有的值被设置为零,并且为非零的(正的值)的网格点的形状指数的计算方法。
参数:loc
(optional) mn X 2 numeric matrix giving the grid point locations. If NULL, the expanded grid with x=1:m and y=1:n is used.
(可选)MN X 2数字矩阵提供的网格点的位置。如果为NULL,扩展的蓄电池铅板,其中x = 1:m和y = 1:n的被使用。
Details
详细信息----------Details----------
The shape index introduced in AghaKouchak et al. (2011) is defined as
的形状指数在AghaKouchak等引入。 (2011)被定义为
Sindex = Pmin/P,
Sindex = PMIN / P,
where for n = the number of positive-valued grid points, Pmin = 4*sqrt(n) if floor(sqrt(n)) = sqrt(n), and Pmin = 2*(floor(2*sqrt(n)+1) otherwise. P is the permieter of the non-zero grid points. Range is 0 to 1. Values closer to 1 indicate shapes that are closer to circular.
其中,对于n =正值的网格点的数目,Pmin的= 4 *的sqrt(n)如地板(的sqrt(n)的)=的sqrt(n)的,和Pmin = 2 *(地板(2 *的sqrt(n)的+ 1)在其他情况下,P是permieter的非零的网格点,其范围为0到1的值越接近1,表示是接近圆形的形状。
值----------Value----------
numeric
数字
(作者)----------Author(s)----------
Eric Gilleland
参考文献----------References----------
参见----------See Also----------
Cindex, Aindex
Cindex,Aindex
实例----------Examples----------
# Re-create Fig. 7a from AghaKouchak et al. (2011).[重新创建。 7a的从AghaKouchak等。 (2011年)。]
tmp <- matrix(0, 8, 8)
tmp[3,2:4] <- 1
tmp[5,4:6] <- 1
tmp[7,6:7] <- 1
Sindex(tmp)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|