Extract or replace the spacing attribute of a detector array or mask.
提取或更换的检测器阵列或掩模的间距属性。
用法----------Usage----------
spacing(object, ...)
spacing(object) <- value
参数----------Arguments----------
参数:object
object with "spacing" attribute e.g. traps
“间距”属性例如对象traps
参数:value
numeric value for spacing
数值间距
参数:...
other arguments (not used)
其他参数(未使用)
Details
详细信息----------Details----------
The "spacing" attribute of a detector array is the average distance from one detector to the nearest other detector.
的检测器阵列的间隔属性是从一个检测器的平均距离最近的其他探测器。
The attribute was not always set by make.grid() and read.traps() in versions of secr before 1.5.0. If the attribute is found to be NULL then spacing will compute it on the fly.
该属性不总是由make.grid()和read.traps()secr1.5.0之前的版本中。如果该属性为NULL,然后spacing会计算它的飞行。
值----------Value----------
scalar numeric value of mean spacing, or a vector if object has multiple sessions
标量数值的平均间距,或矢量object如果有多个会话
参见----------See Also----------
traps
traps
实例----------Examples----------
temptrap <- make.grid(nx = 6, ny = 8)
spacing(temptrap)