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

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

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

                                        Generic Pairwise Interaction model
                                         通用对相互作用模型

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

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

Creates an instance of a pairwise interaction point process model which can then be fitted to point pattern data.
一对相互作用的点过程模型,然后可以配点模式的数据创建一个实例。


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


  Pairwise(pot, name, par, parnames, printfun)



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

参数:pot
An R language function giving the user-supplied pairwise interaction potential.
R语言的功能,给予用户提供的两两相互作用势。


参数:name
Character string.
字符的字符串。


参数:par
List of numerical values for irregular parameters
不规则的参数的数值


参数:parnames
Vector of names of irregular parameters
不规则的参数向量的名称


参数:printfun
Do not specify this argument: for internal use only.
不要指定此参数仅供内部使用。


Details

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

This code constructs a member of the pairwise interaction family pairwise.family with arbitrary pairwise interaction potential given by the user.
此代码构造两两互动家庭的成员pairwise.family由用户给定任意的成对相互作用势。

Each pair of points in the point pattern contributes a factor h(d) to the probability density, where d is the distance between the two points. The factor term h(d) is
的点图案的每对点的概率密度贡献的因素h(d),其中d是在两个点之间的距离。因素术语h(d)

provided pot(d) is finite,  where theta is the coefficient vector in the model.  
提供pot(d)是有限的,theta是的系数向量模型中的。

The function pot must take as its first argument a matrix of interpoint distances, and evaluate the potential for each of these distances. The result must be either a matrix with the same dimensions as its input, or an array with its first two dimensions the same as its input (the latter case corresponds to a vector-valued potential).
的功能pot必须采取的第一个参数矩阵的INTERPOINT距离,并评估这些距离的潜力。结果必须是一个矩阵作为其输入具有相同的尺寸,或与前两个维度作为它的输入(在后者的情况下对应的矢量值的电位)相同的数组。

If irregular parameters are present, then the second argument to pot should be a vector of the same type as par giving those parameter values.
如果不规则的参数,第二个参数pot应该是相同类型的par的给那些参数值的向量。

The values returned by pot may be finite numeric values, or -Inf indicating a hard core (that is, the corresponding interpoint distance is forbidden). We define h(d) = 0 if pot(d) = -Inf. Thus, a potential value of minus infinity is always interpreted as corresponding to h(d) = 0, regardless of the sign and magnitude of theta.
pot返回的值可能是有限的数值,或-Inf的这表明硬核心(即,相应的INTERPOINT距离是禁止的)。我们定义“h(d) = 0如果pot(d) = -Inf。因此,负无穷大的潜在价值总是被解释为相应的h(d) = 0,不管的符号和大小的theta。


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

An object of class "interact" describing the interpoint interaction structure of a point process.
类的一个对象"interact"描述INTERPOINT互动结构的点处理。


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

ppm, pairwise.family, ppm.object
ppm,pairwise.family,ppm.object


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


   #This is the same as StraussHard(r=0.7,h=0.05)[这是相同的作为StraussHard相关(r = 0.7的数,h = 0.05)]
   strpot <- function(d,par) {
         r <- par$r
         h <- par$h
         value <- (d <= r)
         value[d < h] <- -Inf
         value
   }
   mySH <- Pairwise(strpot, "StraussHard process", list(r=0.7,h=0.05),
           c("interaction distance r", "hard core distance h"))
   data(cells)
   ppm(cells, ~ 1, mySH, correction="isotropic")

   # Fiksel (1984) double exponential interaction[Fiksel(1984)双指数互动]
   # see Stoyan, Kendall, Mecke 1987 p 161[斯托扬,肯德尔,Mecke 1987年,p 161]

   fikspot <- function(d, par) {
      r <- par$r
      h <- par$h
      zeta <- par$zeta
      value <- exp(-zeta * d)
      value[d < h] <- -Inf
      value[d > r] <- 0
      value
   }
   Fiksel <- Pairwise(fikspot, "Fiksel double exponential process",
                      list(r=3.5, h=1, zeta=1),
                      c("interaction distance r",
                        "hard core distance h",
                        "exponential coefficient zeta"))
   data(spruces)
   fit <- ppm(unmark(spruces), ~1, Fiksel, rbord=3.5)
   fit
   plot(fitin(fit), xlim=c(0,4))
   coef(fit)
   # corresponding values obtained by Fiksel (1984) were -1.9 and -6.0[者Fiksel(1984)获得的相应的值分别为-1.9和-6.0]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 17:53 , Processed in 0.019559 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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