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

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

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

                                        Random Re-Labelling of Point Pattern
                                         随机重新点格局的标签

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

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

Randomly allocates marks to a point pattern, or permutes the existing marks, or resamples from the existing marks.
随机分配一个点图案的标记,或置换现有的标记,从现有的标记或重新采样。


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


   rlabel(X, labels=marks(X), permute=TRUE)



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

参数:X
Point pattern (object of class "ppp").  
点模式(类的对象"ppp")。


参数:labels
Vector of values from which the new marks will be drawn at random. Defaults to the vector of existing marks.  
新的标志将随机抽取值的向量。默认的向量现有的标记。


参数:permute
Logical value indicating whether to generate new marks by randomly permuting labels or by drawing a random sample with replacement.  
逻辑值,该值指示是否产生新的标记,通过随机置换labels或更换绘制随机抽样。


Details

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

This very simple function allocates random marks to an existing point pattern X. It is useful for hypothesis testing purposes.
这个非常简单的函数随机标记分配到现有的点模式X。这是用于假设测试目的。

In the simplest case, the command rlabel(X) yields a point pattern obtained from X by randomly permuting the marks of the points.
在最简单的情况下,命令rlabel(X)产生一个点模式获得X,通过随机置换的标记的点。

If permute=TRUE, then labels should be a vector of length equal to the number of points in X. The result of rlabel will be a point pattern with locations given by X and marks given by a random permutation of labels (i.e. a random sample without replacement).
如果permute=TRUE,然后labels应的向量的长度相等的点的数量在X。 rlabel的结果将是一个点的位置X和标记的随机排列labels(即一个随机抽样无需更换)模式。

If permute=FALSE, then labels may be a vector of any length.  The result of rlabel will be a point pattern with locations given by X and marks given by a random sample from labels (with replacement).
如果permute=FALSE,那么labels可能是任何长度的向量。 rlabelX和labels(更换)的一个随机样本标记的位置将是一个点模式。


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

A marked point pattern.
一个显着的点模式。


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

marks<- to assign arbitrary marks.
marks<-指定任意的标记。


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


   data(amacrine)

   # Randomly permute the marks "on" and "off"[随机标记“开”和“关”]
   # Result always has 142 "off" and 152 "on"[结果总是142“关闭”和152“上”]
   Y <- rlabel(amacrine)

   # randomly allocate marks "on" and "off"[随机分配标记“开”和“关”]
   # with probabilities p(off) = 0.48, p(on) = 0.52[概率p(关闭)= 0.48,P(上)= 0.52]
   Y <- rlabel(amacrine, permute=FALSE)

   # randomly allocate marks "A" and "B" with equal probability[随机分配标记的概率是相同的“A”和“B”]
   data(cells)
   Y <- rlabel(cells, labels=factor(c("A", "B")), permute=FALSE)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 10:36 , Processed in 0.025012 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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