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

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

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

                                        Create a Line Segment Pattern
                                         创建直线段模式

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

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

Creates an object of class "psp" representing  a line segment pattern in the two-dimensional plane.
创建类的一个对象"psp"表示的线段中的两维平面的图案。


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


  psp(x0,y0, x1, y1, window, marks=NULL,
        check=spatstat.options("checksegments"))



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

参数:x0
Vector of x coordinates of first endpoint of each segment
向量的x各段的第一个端点的坐标


参数:y0
Vector of y coordinates of first endpoint of each segment
向量的y各段的第一个端点的坐标


参数:x1
Vector of x coordinates of second endpoint of each segment
各段的第二个端点的坐标向量的x


参数:y1
Vector of y coordinates of second endpoint of each segment
各段的第二个端点的坐标向量的y


参数:window
window of observation, an object of class "owin"
窗口的观察,对象类"owin"


参数:marks
(optional) vector or data frame of mark values
(可选)向量或数据框的标记值


参数:check
Logical value indicating whether to check that the line segments lie inside the window.
逻辑值,该值指示是否检查该线段位于窗口内的。


Details

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

In the spatstat library, a spatial pattern of line segments is described by an object of class "psp". This function creates such objects.
在spatstat库,空间格局的线段所描述的对象的类"psp"。此函数创建的对象。

The vectors x0, y0, x1 and y1 must be numeric vectors of equal length. They are interpreted as the cartesian coordinates of the endpoints of the line segments.
的矢量x0,y0,x1和y1必须是数字向量的长度相等。它们被解释为直角坐标系中的线段的端点。

A line segment pattern is assumed to have been observed within a specific region of the plane called the observation window. An object of class "psp" representing a point pattern contains information specifying the observation window. This window must always be specified when creating a point pattern dataset; there is intentionally no default action of “guessing” the window dimensions from the data points alone.
甲线段图案假设已经观察到一个特定的区域内的平面称为观察窗。类的一个对象"psp"表示一个点图案包含指定的观察窗口的信息。这个窗口必须始终被创建时指定一个点模式数据,没有预设动作是故意的“猜测”窗口尺寸的单独的数据点。

The argument window must be an object of class "owin". It is a full description of the window geometry, and could have been obtained from owin or as.owin, or by just extracting the observation window of another dataset, or by manipulating such windows. See owin or the Examples below.
参数window必须是一个对象的类"owin"。它是一个完整的描述窗口的尺寸,并已获得来自owin或as.owin,或只提取另一个数据集的观测窗口,或通过操作这些窗口。请参阅owin或以下的实施例。

The optional argument marks is given if the line segment pattern is marked, i.e. if each line segment carries additional information. For example, line segments which are classified into two or more different types, or colours, may be regarded as having a mark which identifies which colour they are.
可选参数marks给予,如果线段图案标记,也就是说,如果每个线段携带额外的信息。例如,它们被分为两个或更多的不同的类型,或颜色的线段,可以视为具有商标标识它们的颜色。

The object marks must be a vector of the same length as x0, or a data frame with number of rows equal to the length of x0.  The interpretation is that marks[i] or marks[i,] is the mark attached to the ith line segment.  If the marks are real numbers then marks should be a numeric vector, while if the marks takes only a finite number of possible values (e.g. colours or types) then marks should be a factor.
对象marks必须x0,或一个数据框的行数的数字等于x0长度相同的长度的矢量。的解释是,这marks[i]或marks[i,]的标志是i个线段。如果该商标是实数,那么marks应该是一个数值向量,而如果该商标只需要有限数量的可能的值(例如颜色或类型),然后marks应该是一个factor 。

See psp.object for a description of the class "psp".
见psp.object的描述的类"psp"。

Users would normally invoke psp to create a line segment pattern, and the function as.psp to convert data in another format into a line segment pattern.
用户通常会调用psp创建一个线段图案,和函数as.psp以另一种格式的数据转换成一个线段图案。


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

An object of class "psp"  describing a line segment pattern in the two-dimensional plane (see psp.object).
类的一个对象"psp"描述的线段中的二维平面上的图案(见psp.object)。


(作者)----------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.object, as.psp, owin.object, owin, as.owin, marks.psp
psp.object,as.psp,owin.object,owin,as.owin,marks.psp


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


  X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
  m <- data.frame(A=1:10, B=letters[1:10])
  X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin(), marks=m)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-16 16:23 , Processed in 0.032102 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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