pixelquad(spatstat)
pixelquad()所属R语言包:spatstat
Quadrature Scheme Based on Pixel Grid
基于正交计划的像素网格
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Makes a quadrature scheme with a dummy point at every pixel of a pixel image.
使正交的计划,一个虚拟的像素图像的每一个像素点。
用法----------Usage----------
pixelquad(X, W = as.owin(X))
参数----------Arguments----------
参数:X
Point pattern (object of class "ppp") containing the data points for the quadrature scheme.
点模式(类的对象"ppp")的正交计划中包含的数据点。
参数:W
Specifies the pixel grid. A pixel image (object of class "im"), a window (object of class "owin"), or anything that can be converted to a window by as.owin.
指定像素电网。类的对象的像素的图像("im"),一个窗口(对象类"owin"),或任何可以被转换到一个窗口as.owin。
Details
详细信息----------Details----------
This is a method for producing a quadrature scheme for use by ppm. It is an alternative to quadscheme.
这是一种方法,用于产生正交计划由ppm。这是替代quadscheme。
The function ppm fits a point process model to an observed point pattern using the Berman-Turner quadrature approximation (Berman and Turner, 1992; Baddeley and Turner, 2000) to the pseudolikelihood of the model. It requires a quadrature scheme consisting of the original data point pattern, an additional pattern of dummy points, and a vector of quadrature weights for all these points. Such quadrature schemes are represented by objects of class "quad". See quad.object for a description of this class.
的功能ppm适合点过程模型的观测点模式,使用伯曼 - 特纳正交近似(Berman和特纳,1992年Baddeley和特纳,2000)的模型pseudolikelihood。它需要一个正交方案组成的原始数据点的图案,哑点的附加图案,和一个正交的权重向量,所有这些点。这种正交计划为代表的对象的类"quad"。见quad.object这一类的描述。
Given a grid of pixels, this function creates a quadrature scheme in which there is one dummy point at the centre of each pixel. The counting weights are used (the weight attached to each quadrature point is 1 divided by the number of quadrature points falling in the same pixel).
给定一个的像素网格,该函数创建一个正交的方案,在该方案中,在每个像素的中心是一个伪点。使用的计数的权重(连接到每个正交点的权重是1除以属于同一像素中的正交点的数目)。
The argument X specifies the locations of the data points for the quadrature scheme. Typically this would be a point pattern dataset.
参数X指定位置的数据点积分方案。通常情况下,这将是一个点模式数据。
The argument W specifies the grid of pixels for the dummy points of the quadrature scheme. It should be a pixel image (object of class "im"), a window (object of class "owin"), or anything that can be converted to a window by as.owin. If W is a pixel image or a binary mask (a window of type "mask") then the pixel grid of W will be used. If W is a rectangular or polygonal window, then it will first be converted to a binary mask using as.mask at the default pixel resolution.
参数W指定的网格,虚拟像素点的正交计划。它应该是一个像素的图像(类的对象"im"),一个窗口(对象类"owin"),或任何可以被转换到一个窗口as.owin。如果W是一个像素的图像或二进制掩模("mask"),然后的像素网格,W将可以使用的窗口类型。如果W是一个矩形或多边形的窗口,那么它会先被转换为一个二进制掩模使用as.mask在默认的像素分辨率。
值----------Value----------
An object of class "quad" describing the quadrature scheme (data points, dummy points, and quadrature weights) suitable as the argument Q of the function ppm() for fitting a point process model.
类的一个对象"quad"描述的积分方案(数据点,虚拟点,和正交权重),适合作为参数Q的功能ppm()拟合点过程模型的。
The quadrature scheme can be inspected using the print and plot methods for objects of class "quad".
积分方案可以通过检查使用对象类print的plot和"quad"方法。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
参见----------See Also----------
quadscheme, quad.object, ppm
quadscheme,quad.object,ppm
实例----------Examples----------
W <- owin(c(0,1),c(0,1))
X <- runifpoint(42, W)
W <- as.mask(W,dimyx=128)
pixelquad(X,W)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|