angles.psp(spatstat)
angles.psp()所属R语言包:spatstat
Orientation Angles of Line Segments
线段的方向角
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the orientation angle of each line segment in a line segment pattern.
计算的取向角中的各线段的线段图案。
用法----------Usage----------
angles.psp(x, directed=FALSE)
参数----------Arguments----------
参数:x
A line segment pattern (object of class "psp").
一个线段模式(类的对象"psp")。
参数:directed
Logical flag. See details.
逻辑标志。查看详细信息。
Details
详细信息----------Details----------
For each line segment, the angle of inclination to the x-axis (in radians) is computed, and the angles are returned as a numeric vector.
对于每个线段,x-轴(以弧度为单位)的倾斜角的计算,并且作为一个数值向量的角度返回。
If directed=TRUE, the directed angle of orientation is computed. The angle respects the sense of direction from (x0,y0) to (x1,y1). The values returned are angles in the full range from -pi to pi. The angle is computed as atan2(y1-y0,x1-x0). See atan2.
如果directed=TRUE,定向的角度计算的取向。从(x0,y0)到(x1,y1)的角度尊重方向感,。返回的值是全方位的角度,从-pi到pi。角度的计算方法为atan2(y1-y0,x1-x0)。见atan2。
If directed=FALSE, the undirected angle of orientation is computed. Angles differing by pi are regarded as equivalent. The values returned are angles in the range from 0 to pi. These angles are computed by first computing the directed angle, then adding pi to any negative angles.
如果directed=FALSE,无向的取向角计算。角不同的pi的视为等同。返回的值的范围的角度,从0到pi。这些角度计算,首先计算定向的角度,然后加入pi任何负面的角度。
值----------Value----------
Numeric vector.
数字矢量。
(作者)----------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----------
summary.psp, midpoints.psp, lengths.psp
summary.psp,midpoints.psp,lengths.psp
实例----------Examples----------
a <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
b <- angles.psp(a)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|