getMOA(shotGroups)
getMOA()所属R语言包:shotGroups
Conversion to minutes of angle
转换成分钟角度
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Converts object size to MOA (minutes of angle).
转换对象的大小MOA(角度分钟)。
用法----------Usage----------
getMOA(x, dst, conversion = 'm2cm')
参数----------Arguments----------
参数:x
a numerical vector of object sizes.
一个数值向量对象的大小。
参数:dst
a numerical vector of viewing distances.
一个数值向量的观看距离。
参数:conversion
how to convert the measurement unit for distance to target to that of the (x,y)-coordinates. Either a character vector indicating the conversion: 'm2cm' for meter to centimeter, 'm2mm' for meter to millimeter, 'yd2in' for yards to inches, or 'ft2in' for feet to inches. Alternatively, a numerical vector giving the multiplication factor for conversion: 100 for m to cm, 36 for yd to in, and 12 for ft to in.
如何转换的测量单元,用于与目标距离的(x,y)的坐标。一个字符向量表示的转换:'m2cm'米级到厘米,'m2mm'米毫米,'yd2in'码英寸,或'ft2in'脚为英寸。另外,数值向量的乘法因子转换:100米到厘米,36码在12英尺英寸
值----------Value----------
A numerical vector with the MOA values.
一个数值向量与MOA值。
警告----------Warning ----------
The calculation leads to rounding errors after a few significant digits.
几个重要的数字计算后导致舍入误差。
参见----------See Also----------
fromMOA
fromMOA
实例----------Examples----------
objSize <- seq(10, 30, by=5) # cm[厘米]
objDst <- 25 # m[米]
getMOA(objSize, dst=objDst, conversion='m2cm')
## check rounding problems[#四舍五入的问题]
## this should return objSize[#这应返回objSize]
fromMOA(getMOA(objSize, objDst, conversion='m2cm'),
objDst, conversion='m2cm')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|