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

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

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

                                        Generate Poisson Point Pattern on Line Segments
                                         生成的泊松点模式上线段

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

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

Given a line segment pattern, generate a Poisson random point pattern on the line segments.
由于线段模式,产生一个泊松随机点图案的线段。


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


rpoisppOnLines(lambda, L, lmax = NULL, ...)



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

参数:lambda
Intensity of the Poisson process. A single number, a function(x,y), or a pixel image (object of class "im").  
泊松过程的强度。一个单号,是一个function(x,y),或像素图像(对象类"im")。


参数:L
Line segment pattern (object of class "psp") on which the points should be generated.  
其上的点应该生成线段图案(对象类"psp")。


参数:lmax
Maximum possible value of lambda if it is a function or a pixel image.  
的最大可能值lambda,如果它是一个函数或一个像素的图像。


参数:...
Additional arguments passed to lambda if it is a function.  
额外参数传递lambda的,如果它是一个函数。


Details

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

This command generates a Poisson point process on the one-dimensional system of line segments in L. The result is a point pattern consisting of points lying on the line segments in L. The number of random points falling on any given line segment follows a Poisson distribution. The patterns of points on different segments are independent.
此命令生成一个Poisson点过程的一维系统中的线段L。其结果是一个点的图案组成的线段上的点在L。在任何给定的线段随机点的数量服从泊松分布。点的模式,在不同的分部都是独立的。

The intensity lambda is the expected number of points per unit length of line segment.  It may be constant, or it may depend on spatial location.
强度lambda是预期数目的每单位长度的线段的点。它可以是恒定的,或也可能依赖于空间位置。

The argument lambda may be a single number, or a function(x,y), or a pixel image (object of class "im"). In the two latter cases, the rejection method is used.
参数lambda类的对象可能是一个单一的数字,或function(x,y),或像素图像("im"“)。在后两种情况下,用于抑制方法。

The rejection method requires knowledge of lmax, the maximum possible value of lambda. If lmax is not given, it will be computed approximately, by sampling many values of lambda.
抑制方法需要知识的lmax,最大可能值lambda。 lmax如果没有给出,将近似计算,进行采样值lambda。


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

A point pattern (object of class "ppp") in the same window as L.
点模式(对象类"ppp")在同一窗口中的L。


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

psp, ppp, runifpointOnLines, rpoispp
psp,ppp,runifpointOnLines,rpoispp


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


  L <- psp(runif(10), runif(10), runif(10), runif(10),  window=owin())
  plot(L, main="")

  # uniform intensity[统一强度]
  Y <- rpoisppOnLines(4, L)
  plot(Y, add=TRUE, pch="+")

  # intensity is a function[强度是一个函数]
  Y <- rpoisppOnLines(function(x,y){ 10 * x^2}, L, 10)
  plot(L, main="")
  plot(Y, add=TRUE, pch="+")

  # intensity is an image[强度是一个图像]
  Z <- as.im(function(x,y){10 * sqrt(x+y)}, unit.square())
  Y <- rpoisppOnLines(Z, L, 10)
  plot(L, main="")
  plot(Y, add=TRUE, pch="+")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-17 05:58 , Processed in 0.026885 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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