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

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

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

                                        Generate N Uniform Random Points in a Disc
                                         产生N个均匀分布的随机点在光盘

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

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

Generate a random point pattern containing n independent uniform random points in a circular disc.
生成一个随机的点模式n独立均匀分布的随机点在圆盘。


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


runifdisc(n, radius=1, centre=c(0,0), ...)



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

参数:n
Number of points.  
点的数量。


参数:radius
Radius of the circle.
圆的半径。


参数:centre
Coordinates of the centre of the circle.
的圆的中心的坐标。


参数:...
Arguments passed to disc controlling the accuracy of approximation to the circle.  
参数传递给disc控制精度的近似圆。


Details

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

This function generates n independent random points, uniformly distributed in a circular disc.
这个函数生成n独立的随机点,均匀分布在圆盘。

It is faster (for a circular window) than the general code used in runifpoint.
是更快的圆形窗口比一般的代码用于runifpoint。

To generate random points in an ellipse, first generate points in a circle using runifdisc, then transform to an ellipse using affine, as shown in the examples.
要生成一个椭圆形中的随机点,首先生成点在一个圆圈使用runifdisc,然后变换为椭圆使用affine,在实施例中所示。

To generate random points in other windows, use runifpoint. To generate non-uniform random points, use rpoint.
要生成随机点在其它窗口中使用runifpoint。为了产生非均匀分布的随机点,使用rpoint。


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

The simulated point pattern (an object of class "ppp").
的模拟点模式(类的一个对象"ppp"“)。


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

disc, runifpoint, rpoint
disc,runifpoint,rpoint


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


# 100 random points in the unit disc[单位圆内的100个随机点]
plot(runifdisc(100))
# 42 random points in the ellipse with major axis 3 and minor axis 1[42个随机点在椭圆长轴3和短轴1]
X <- runifdisc(42)
Y <- affine(X, mat=diag(c(3,1)))
plot(Y)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 00:20 , Processed in 0.032882 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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