找回密码
 注册
查看: 523|回复: 0

R语言 spatstat包 msr()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:48:52 | 显示全部楼层 |阅读模式
msr(spatstat)
msr()所属R语言包:spatstat

                                         Signed or Vector-Valued Measure
                                         签名或向量值的措施

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Defines an object representing a signed measure or vector-valued measure on a spatial domain.
定义了一个对象,表示一个有符号的措施或矢量空间域的重要措施。


用法----------Usage----------


  msr(qscheme, discrete, density, check=TRUE)



参数----------Arguments----------

参数:qscheme
A quadrature scheme (object of class "quad" usually extracted from a fitted point process model).  
正交计划(类的对象"quad"通常提取从安装点过程模型)。


参数:discrete
Vector or matrix containing the values (masses) of the discrete component of the measure, for each of the data points in qscheme.  
含向量或矩阵的值(质量)的分立元件(discrete component)的措施,为每一个中的数据点qscheme。


参数:density
Vector or matrix containing values of the density of the diffuse component of the measure, for each of the quadrature points in qscheme.  
含向量或矩阵的该措施的漫反射成分的密度的值,为每个在qscheme的正交点。


参数:check
Logical. Whether to check validity of the arguments.  
逻辑。是否检查参数的有效性。


Details

详细信息----------Details----------

This function creates an object that represents a signed or vector valued measure on the two-dimensional plane. It is not normally called directly by the user.
这个函数创建一个对象,它代表的二维平面上的一个签名或向量值的措施。一般是不用由用户直接调用。

A signed measure is a classical mathematical object (Diestel and Uhl, 1977) which can be visualised as a collection of electric charges, positive and/or negative, spread over the plane. Electric charges may be concentrated at specific points (atoms), or spread diffusely over a region.
一个签名的措施是一个经典的数学对象(迪斯特尔和乌尔,1977),它可以可视化作为一个集合的电荷,正和/或负,在飞机上传播。电荷可以集中在特定的点(原子),或漫过的区域传播。

An object of class "msr" represents a signed (i.e. real-valued) or vector-valued measure in the spatstat package.
一个对象的类"msr"的代表签名(即实际值)或向量值的措施在spatstat包。

Spatial residuals for point process models (Baddeley et al, 2005, 2008) take the form of a real-valued or vector-valued measure. The function residuals.ppm returns an object of class "msr" representing the residual measure.
空间点过程模型的残差(巴德利等人,2005年,2008年)的实值或向量值措施的形式。函数residuals.ppm返回一个对象类"msr"残留的措施。

The function msr  would not normally be called directly by the user. It is the low-level creator function that makes an object of class "msr" from raw data.
的功能msr通常不会直接调用的用户。它是对象的类"msr"从原始数据的功能,使低级别的创造者。

The first argument qscheme is a quadrature scheme (object of class "quad"). It is typically created by quadscheme or extracted from a fitted point process model using quad.ppm. A quadrature scheme contains both data points and dummy points. The data points of qscheme are used as the locations of the atoms of the measure. All quadrature points (i.e. both data points and dummy points) of qscheme are used as sampling points for the density of the continuous component of the measure.
第一个参数qscheme是一个正交计划(对象类"quad")。它通常创建的quadscheme或从安装点过程模型使用quad.ppm提取。正交计划包含的数据点和虚点。 qscheme的数据点被用作该措施的原子的位置。所有正交点(即两个数据点和虚拟点)qscheme被用作该措施的上述连续成分的密度的采样点。

The argument discrete gives the values of the atomic component of the measure for each data point in qscheme. It should be either a numeric vector with one entry for each data point, or a numeric matrix with one row for each data point.
参数discrete的原子组件的测量值,为每个数据点的qscheme。它应是一个数值向量用一个条目,每个数据点,或用一个行的每个数据点的数值矩阵。

The argument density gives the values of the density of the diffuse component of the measure, at each quadrature point in qscheme. It should be either a numeric vector with one entry for each quadrature point, or a numeric matrix with one row for each quadrature point.
参数density给出了该措施的漫反射成分的密度的值,在每个正交点在qscheme。它应该是一个数值向量用一个条目,每个正交点,或用一排的每个正交点数值矩阵。

If both discrete and density are vectors (or one-column matrices) then the result is a signed (real-valued) measure. Otherwise, the result is a vector-valued measure, with the dimension of the vector space being determined by the number of columns in the matrices discrete and/or density. (If one of these is a k-column matrix and the other is a 1-column matrix, then the latter is replicated to k columns).
如果两个discrete和density是向量(或一列的矩阵),那么结果是一个符号(实际值)的措施。否则,结果是一个矢量值的措施,在矩阵的列数被确定discrete和/或density的维数的向量空间。 (如果其中的一个是一个k-列矩阵,另一种是一个1列的矩阵,然后后者被复制到k列)。

The class "msr" has methods for print, plot and [.  There is also a function smooth.msr for smoothing a measure.
类"msr" print,plot和[的方法。还有一个功能smooth.msr平滑的措施。


值----------Value----------

An object of class "msr" that can be plotted by plot.msr.
一个类的对象可以绘制的"msr",plot.msr。


(作者)----------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>




参考文献----------References----------

Residual analysis for spatial point processes. Journal of the Royal Statistical Society, Series B 67, 617&ndash;666.
Properties of residuals for spatial point processes. Annals of the Institute of Statistical Mathematics 60, 627&ndash;649.
Vector measures. Providence, RI, USA: American Mathematical Society.

参见----------See Also----------

plot.msr, smooth.msr, [.msr
plot.msr,smooth.msr,[.msr


实例----------Examples----------


   X <- rpoispp(function(x,y) { exp(3+3*x) })
   fit <- ppm(X, ~x+y)
   
   rp <- residuals(fit, type="pearson")
   rp

   rs <- residuals(fit, type="score")
   rs
   colnames(rs)

   # An equivalent way to construct the Pearson residual measure by hand[一个等效的方法来构造的Pearson残差措施的手]
   Q <- quad.ppm(fit)
   lambda <- fitted(fit)
   slam <- sqrt(lambda)
   Z <- is.data(Q)
   m <- msr(Q, discrete=1/slam[Z], density = -slam)
   m

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-15 23:29 , Processed in 0.022232 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表