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

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

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

                                        Calculate Summary Statistic for All Types in a Multitype Point Pattern
                                         计算汇总统计所有类型的多类型,点模式

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

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

Given a marked point pattern, this computes the estimates of a selected summary function (F,G, J, K etc) of the pattern, for all possible combinations of marks, and returns these functions in an array.
给定一个显着的点模式,计算的估计选定的汇总函数(F,G,J,K等)的格局,为所有可能的组合标记,并返回这些函数在一个数组中。


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


  alltypes(X, fun="K", ..., dataname=NULL,verb=FALSE,envelope=FALSE)



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

参数:X
The observed point pattern, for which summary function estimates are required.  An object of class "ppp".  
该观测点的图案,其中汇总函数的估计是必需的。对象的类"ppp"。


参数:fun
The summary function. Either an R function, or a character string indicating the summary function required.  Options for strings are "F", "G", "J", "K", "L", "pcf", "Gcross", "Jcross", "Kcross", "Lcross", "Gdot", "Jdot", "Kdot", "Ldot".  
汇总功能。一个R函数,或者是一个字符串,表示所需的汇总函数。选项字符串是"F","G","J","K","L","pcf","Gcross","Jcross"的,"Kcross","Lcross","Gdot","Jdot","Kdot","Ldot"。


参数:...
Arguments passed to the summary function (and to the function envelope if appropriate)  
传递参数的汇总函数(和函数envelope,如果适当)


参数:dataname
Character string giving an optional (alternative) name to the point pattern, different from what is given in the call.  This name, if supplied, may be used by plot.fasp() in forming the title of the plot. If not supplied it defaults to the parsing of the argument supplied as X in the call.  
提供一个可选的字符串(二选一)名称的模式,在调用不同。这个名字,如果提供的话,可使用plot.fasp()的图的标题。如果没有提供,则默认为X在调用提供的参数的解析。


参数:verb
Logical value.  If verb is true then terse “progress reports” (just the values of the mark indices) are printed out when the calculations for that combination of marks are completed.   
逻辑值。打印完成时,计算该组合的商标verb如果是真的,那么简洁的“进展报告”(只是标记指数的值)。


参数:envelope
Logical value. If envelope is true, then simulation envelopes of the summary function will also be computed. See Details.  
逻辑值。 envelope如果是真实的,那么也将被计算的汇总函数的模拟信封。查看详细信息。


Details

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

This routine is a convenient way to analyse the dependence between types in a multitype point pattern. It computes the estimates of a selected summary function of the pattern, for all possible combinations of marks. It returns these functions in an array (an object of class "fasp") amenable to plotting by plot.fasp().
此程序是一个方便的方法来分析一个多类型模式类型之间的依赖关系。它计算的一个选定的图案汇总函数的估计,标记的所有可能组合。这些函数返回一个数组(类的一个对象"fasp")适合绘制的plot.fasp()。

The argument fun specifies the summary function that will be evaluated for each type of point, or for each pair of types. It may be either an R function or a character string.
参数fun指定的汇总函数,为每个类型的点,或为每个类型对将被评估。它可以是一个R函数或者是一个字符串。

Suppose that the points have possible types 1,2,…,m and let X[i] denote the pattern of points of type i only.
假设点有可能的类型1,2,…,m“,让我们X[i]表示类型i只点模式。

If fun="F" then this routine calculates, for each possible type i, an estimate of the Empty Space Function F_i(r) of X[i]. See Fest for explanation of the empty space function. The estimate is computed by applying Fest to X[i] with the optional arguments ....
如果fun="F"那么这个程序计算,对于每个可能的类型i,空的空间功能的估计F_i(r)X[i]。见Fest解释的空空间功能。估计数的计算方法是应用FestX[i]的可选参数...。

If fun is "Gcross", "Jcross", "Kcross" or "Lcross", the routine calculates, for each pair of types (i,j), an estimate of the “i-toj” cross-type function G[i,j](r), J[i,j](r), K[i,j](r) or L[i,j](r) respectively describing the dependence between  X[i] and X[j]. See Gcross, Jcross, Kcross or Lcross respectively for explanation of these functions. The estimate is computed by applying the relevant function (Gcross etc) to X using each possible value of the arguments i,j, together with the optional arguments ....
fun如果是"Gcross","Jcross","Kcross"或"Lcross",常规计算,为各类型对(i,j),估计“i到j”十字型功能G[i,j](r),J[i,j](r),K[i,j](r)或L[i,j](r)分别描述之间的依赖关系 X>和X[i]。见X[j],Gcross,Jcross或Kcross分别为这些功能的说明。估计数的计算方法是应用相关的功能(Lcross等)Gcross利用每一个可能的参数值,X,再加上可选参数i,j。

If fun is "pcf" the routine calculates the cross-type pair correlation function pcfcross between each pair of types.
如果fun是"pcf"的日常计算十字型对相关函数pcfcross之间每对类型。

If fun is  "Gdot", "Jdot", "Kdot" or "Ldot", the routine calculates, for each type i, an estimate of the “i-to-any” dot-type function G[i.](r), J[i.](r) or K[i.](r) or L[i.](r) respectively describing the dependence between X[i] and X. See Gdot, Jdot, Kdot or Ldot respectively for explanation of these functions. The estimate is computed by applying the relevant function (Gdot etc) to X using each possible value of the argument i, together with the optional arguments ....
如果fun是"Gdot","Jdot","Kdot"或"Ldot",常规计算,为各类型i,估计“ i-到任意“点式功能G[i.](r),J[i.](r)或K[i.](r)或L[i.](r)分别描述之间的依赖关系X[i]和 X>。见X,Gdot,Jdot或Kdot分别为这些功能的说明。估计数的计算方法是应用相关的功能(Ldot等)Gdot利用每一个可能的值的参数X,再加上可选的参数i。

The letters "G", "J", "K" and "L" are interpreted as abbreviations for Gcross, Jcross, Kcross and Lcross respectively, assuming the point pattern is marked. If the point pattern is unmarked, the appropriate function Fest, Jest, Kest or Lest is invoked instead.
字母"G","J","K"和"L"被解释为缩写Gcross,Jcross,Kcross和Lcross,假设点图案标记。如果点模式是无标记的,相应的功能Fest,Jest,Kest或Lest调用。

If envelope=TRUE, then as well as computing the value of the summary function for each combination of types, the algorithm also computes simulation envelopes of the summary function for each combination of types. The arguments ... are passed to the function envelope to control the number of simulations, the random process generating the simulations, the construction of envelopes, and so on.
如果envelope=TRUE,然后以及汇总函数计算的值的每一种组合的类型,该算法还计算的汇总函数的模拟包络线的类型的每一种组合。的参数...传递给函数的envelope控制的模拟次数,产生模拟的随机过程,信封建设,等等。


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

A function array (an object of class "fasp", see fasp.object). This can be plotted using plot.fasp.
函数阵列(类的一个对象"fasp",看到fasp.object“)。这可以绘制使用plot.fasp。

If the pattern is not marked, the resulting “array” has dimensions 1 x 1. Otherwise the following is true:
如果图案不显着,由此产生的“阵”的尺寸1 x 1。否则,以下是正确的:

If fun="F", the function array has dimensions m * 1 where m is the number of different marks in the point pattern. The entry at position [i,1] in this array is the result of applying Fest to the points of type i only.
如果fun="F",功能阵列的尺寸m * 1其中m是不同的标记点模式。的入口位置[i,1]此数组中的应用Fest点的类型i只有的结果。

If fun is "Gdot", "Jdot", "Kdot" or "Ldot", the function array again has dimensions m * 1. The entry at position [i,1] in this array is the result of Gdot(X, i), Jdot(X, i) Kdot(X, i) or Ldot(X, i) respectively.
fun如果是"Gdot","Jdot","Kdot"或"Ldot"“的功能阵列的尺寸m * 1。的入口位置[i,1]此数组中的结果:“Gdot(X, i),Jdot(X, i)Kdot(X, i)或Ldot(X, i)分别。

If fun is "Gcross", "Jcross", "Kcross" or "Lcross"  (or their abbreviations "G", "J", "K" or "L"), the function array has dimensions m * m. The [i,j] entry of the function array (for i != j) is the result of applying the function Gcross, Jcross, Kcross orLcross to the pair of types (i,j). The diagonal [i,i] entry of the function array is the result of applying the univariate function Gest, Jest, Kest or Lest to the points of type i only.
如果fun是"Gcross","Jcross","Kcross"或"Lcross"(或它们的缩写"G","J","K" 或"L"),该函数阵列的尺寸m * m。 [i,j]项的功能阵列是结果的应用功能i != j,Gcross,Jcross或Kcross(Lcross)类型对(i,j)。的对角线[i,i]项的功能阵列是采用单变量函数的结果Gest,Jest,Kest或Lest点的类型 X>只。

If envelope=FALSE, then each function entry fns[[i]] retains the format of the output of the relevant estimating routine Fest, Gest, Jest, Kest,  Lest, Gcross, Jcross ,Kcross, Lcross, Gdot, Jdot, Kdot or Ldot The default formulae for plotting these functions are  cbind(km,theo) ~ r for F, G, and J functions, and cbind(trans,theo) ~ r for K and L functions.
如果envelope=FALSE,然后每个函数入口的fns[[i]]保留格式的输出有关估计例程Fest,Gest,Jest,Kest Lest,Gcross,Jcross,Kcross,Lcross,Gdot,Jdot,Kdot或 Ldot默认的公式用于绘制这些功能的“cbind(km,theo) ~ rF,G,J的功能,并cbind(trans,theo) ~ rK和L功能。

If envelope=TRUE, then each function entry fns[[i]] has the same format as the output of the envelope command.
如果envelope=TRUE,然后每个函数入口的fns[[i]]作为envelope命令的输出具有相同的格式。


注意----------Note----------

Sizeable amounts of memory may be needed during the calculation.
在计算过程中,可能需要相当大的数量的内存。


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

plot.fasp, fasp.object, Fest, Gest, Jest, Kest, Lest, Gcross, Jcross, Kcross, Lcross, Gdot, Jdot, Kdot, envelope.
plot.fasp,fasp.object,Fest,Gest,Jest,Kest,Lest,Gcross,Jcross,Kcross,Lcross,Gdot,Jdot,Kdot,envelope。


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


   # bramblecanes (3 marks).[bramblecanes(3分)。]
   data(bramblecanes)
   
   bF <- alltypes(bramblecanes,"F",verb=TRUE)
   plot(bF)
   plot(alltypes(bramblecanes,"G"))
   plot(alltypes(bramblecanes,"Gdot"))
   
   # Swedishpines (unmarked).[Swedishpines(标记)。]
   data(swedishpines)
   
   plot(alltypes(swedishpines,"K"))

   data(amacrine)
   plot(alltypes(amacrine, "pcf"), ylim=c(0,1.3))

   # A setting where you might REALLY want to use dataname:[设置你可能真的想使用dataname的:]
   ## Not run: [#不运行:]
   xxx <- alltypes(ppp(Melvin$x,Melvin$y,
                window=as.owin(c(5,20,15,50)),marks=clyde),
                fun="F",verb=TRUE,dataname="Melvin")
   
## End(Not run)[#(不执行)]

   # envelopes[信封]
   bKE <- alltypes(bramblecanes,"K",envelope=TRUE,nsim=19)
   ## Not run: [#不运行:]
   bFE <- alltypes(bramblecanes,"F",envelope=TRUE,nsim=19,global=TRUE)
   
## End(Not run)[#(不执行)]

   # extract one entry[提取一个条目]
   as.fv(bKE[1,1])
   

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-11 09:52 , Processed in 0.037086 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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