Pycnophylactic Interpolation(pycno)
Pycnophylactic Interpolation()所属R语言包:pycno
Perform Tobler's pycnophylactic algorithm.
执行托布勒的pycnophylactic算法。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a SpatialPolygonsDataFrame and a set of populations for each polygon, compute a population density estimate based on Tobler's pycnophylactic interpolation algorithm. The result is a SpatialGridDataFrame.
鉴于SpatialPolygonsDataFrame和一组对每个多边形种群,计算一个人口密度估计,基于托布勒pycnophylactic插值算法。其结果是一个SpatialGridDataFrame。
用法----------Usage----------
pycno(x, pops, celldim, r = 0.2, converge = 3, verbose=TRUE)
参数----------Arguments----------
参数:x
A SpatialPolygonsDataFrame representing a set of zones for which total populations are known.
ASpatialPolygonsDataFrame表示一组被称为其总人口的区域。
参数:pops
A list of populations, one for each zone represented in x.
人口的列表,为每个区域代表在x之一。
参数:celldim
The size of the cell sides for the output SpatialGridDataFrame.
输出SpatialGridDataFrame单元侧的大小。
参数:r
A relaxation parameter for the iterative step in the pycnophylactic algorithm. Prevents over-compensation in the smoothing step. In practice the default value works well.
放宽参数在pycnophylactic算法的迭代步骤。防止过度的平滑化步骤中的补偿。在实践中,默认值效果很好。
参数:converge
A convergence parameter, informing the decision on when iterative improvements on the smooth surface have converged sufficiently - see details.
的收敛参数,通知决定迭代改进光滑表面上时,充分融合 - 查看详细信息。
参数:verbose
If set to TRUE (the default value) makes the function report the maximum change in any pixel value for each iterative step. If set to FALSE the function is silent.
如果设置为TRUE(默认值)的功能在每次迭代过程中的任何像素值报告的最大变化。如果设置为FALSE的功能是无声的。
Details
详细信息----------Details----------
This method uses an iterative approach, and for each iteration notes the maximum change in a pixel. When this value falls below a certain level (actually 10^(-converge) times the largest initial pixel value) the iterations stop and the current surface is reported.
该方法使用了迭代的方法,和为每次迭代注意到在一个象素的最大变化。当该值低于一定水平(实际上10 ^(收敛)倍的最大的初始像素值)的迭代停止和当前的表面被报道。
值----------Value----------
A SpatialGridDataFrame with each pixel set at the estimated density computed with the Pycnophylactic algorithm, these values being stored in the data item dens. The extent of this object is set at by the bounding box of the input SpatialPolygonsDataFrame. Pixels outside of all of the polygons are set to NA.
计算与Pycnophylactic算法估计密度设定在与各像素ASpatialGridDataFrame,这些值被存储在数据资料dens。这个对象范围设置为的边界框输入SpatialPolygonsDataFrame的。以外的所有的多边形的像素被设置为NA。
注意----------Note----------
Pycnophylatic interpolation has the property that the sum of the estimated values associated with all of the pixels in any polygon equals the supplied population for that polygon. A further property is that all pixel values are greater than or equal to zero. The method is generally used to obtain pixel-based population estimates when total populations for a set of irregular polygons (eg. counties) are known.
pycnophylatic插值具有这样的性质,与在任何多边形的所有像素的相关的估计值的总和等于所提供的该多边形人口。再一个属性的所有像素值都大于或等于零。通常使用的方法获得的基于像素的人口时是已知的一组不规则的多边形(如郡)的总人口估计。
(作者)----------Author(s)----------
Chris Brunsdon
参考文献----------References----------
Tobler, W.R. (1979) Smooth Pycnophylactic Interpolation for Geographical Regions. Journal of the American Statistical Association, v74(367) pp. 519-530.
实例----------Examples----------
# Read in data for North Carolina as a SpatialPolygonsDataFrame[在北卡罗莱纳州的数据读取一个SpatialPolygonsDataFrame]
nc.sids <- readShapeSpatial(system.file("shapes/sids.shp", package="maptools")[1], IDvar="FIPSNO", proj4string=CRS("+proj=longlat +ellps=clrk66"))
# Compute the pycnophylactic surface for 1974 births as a SpatialGridDataFrame[1974年出生,作为SpatialGridDataFrame计算的pycnophylactic表面]
# Note probably shouldn't really base grid cells on Lat/Long coordinates[注意应该没有真正的基础网格单元上的纬度/经度坐标]
# This example just serves to illustrate the use of the function[这个例子正好说明了使用的功能]
births74 <- pycno(nc.sids,nc.sids$BIR74,0.05)
# Draw it[它画]
image(births74)
# Overlay North Carolina county boundaries for reference[覆盖北卡罗莱纳州的县界,以供参考]
plot(nc.sids,add=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|