lpp(spatstat)
lpp()所属R语言包:spatstat
Create Point Pattern on Linear Network
线性网络上创建点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates an object of class "lpp" that represents a point pattern on a linear network.
创建类的一个对象"lpp"“”,表示一个点的线性网络模式。
用法----------Usage----------
lpp(X, L)
参数----------Arguments----------
参数:X
Locations of the points. A matrix or data frame of coordinates, or a point pattern object (of class "ppp") or other data acceptable to as.ppp.
的点的位置。矩阵或数据框的坐标,或一个点模式对象(类"ppp")或其他数据可以接受的as.ppp。
参数:L
Linear network (object of class "linnet").
线性网络(类的对象"linnet"“)。
Details
详细信息----------Details----------
This command creates an object of class "lpp" that represents a point pattern on a linear network.
此命令创建类的一个对象"lpp"“”,表示一个点的线性网络模式。
Normally X is a point pattern. The points of X should lie on the lines of L.
通常是“X是一个点的模式。 X的点应该在于线路上的L。
Alternatively X may be a matrix or data frame containing at least two columns.
或者X可以是含有至少有两列的矩阵或数据框。
Usually the first two columns of X will be interpreted as spatial coordinates, and any remaining columns as marks.
通常情况下,第2列的X将被解释为空间坐标,和所有其余的列标记。
The exception occurs if X is a data frame with columns named x, y, seg and tp. Then x and y will be interpreted as spatial coordinates, and seg and tp as local coordinates, with seg indicating which line segment of L the point lies on, and tp indicating how far along the segment the point lies (normalised to 1). Any remaining columns will be interpreted as marks.
出现异常情况X如果是一个数据框列名为x,y,seg和tp。然后x和y会被解释为空间坐标,并seg和tp局部坐标系,seg表明线段L的点在于,tp点位于沿段(归一)。任何剩余的列将被解释为标记。
值----------Value----------
An object of class "lpp". Also inherits the class "ppx".
对象的类"lpp"。同时继承类"ppx"。
改变格式的注意事项----------Note on changed format----------
The internal format of "lpp" objects was changed in spatstat version 1.28-0. Objects in the old format are still handled correctly, but computations are faster in the new format. To convert an object X from the old format to the new format, use X <- lpp(as.ppp(X), as.linnet(X)).
的内部格式"lpp"对象被改变了spatstat版本1.28-0。旧的格式的对象还是正确的,但计算速度更快的新格式。要转换对象X从旧的格式为新的格式,使用X <- lpp(as.ppp(X), as.linnet(X))。
(作者)----------Author(s)----------
Ang Qi Wei <a href="mailto:aqw07398@hotmail.com">aqw07398@hotmail.com</a> and
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>
参见----------See Also----------
methods.lpp and methods.ppx for methods applicable to lpp objects.
methods.lpp和methods.ppx方法适用于lpp对象。
linnet for linear networks.
linnet线性网络。
Random point patterns on a linear network can be generated by rpoislpp or runiflpp.
随机点的线性网络模式可以产生rpoislpp或runiflpp。
实例----------Examples----------
example(linnet)
xx <- list(x=c(-1.5,0,0.5,1.5), y=c(1.5,3,4.5,1.5))
X <- lpp(xx, letterA)
plot(X)
X
summary(X)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|