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

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

[复制链接]
发表于 2012-9-29 23:08:41 | 显示全部楼层 |阅读模式
dive(scuba)
dive()所属R语言包:scuba

                                        Define a Dive Profile
                                         定义一个潜水简介

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

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

Define a dive profile.
定义一个潜水资料。


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


  dive(..., begin=0, end=0, tanklist=NULL)



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

参数:...
Any number of arguments, specifying a sequence of events that make up the dive. The arguments may specify depths, time spent at each depth, ascent or descent rates, and gas switches. See Details.  
任何数目的参数,指定一系列的事件,使潜水。该参数可以指定深度,花费的时间在每个深度,上升或下降率,气体开关。查看详细信息。


参数:begin, end
The depths at the start and finish of the dive (normally zero indicating that the dive starts and finishes at the surface).  
潜水(通常为零表明潜水开始和结束在表面)的开始和结束的深处。


参数:tanklist
Optional list of the gases contained in each tank, for a dive with multiple tanks.  
可选列表包含在每个罐中的气体,一个潜水与多个储罐。


Details

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

This function creates  an object of class "dive" which represents a scuba dive. The dive profile is assumed to be piecewise linear, that is, the graph of depth against time is a broken straight line.  Dives are assumed to start and finish at the surface.
这个函数创建一个对象的类"dive"代表水肺潜水。在潜水档案被假定为分段线性的,即,深度与时间的曲线图中是一个破碎的直线。富豪被认为是开始和结束的表面。

The arguments ... specify a succession of events that make up the dive. Each argument can be
的参数...指定一连串的事件,使潜水。每个参数可以是

interpreted as c(depth, duration) where depth gives the depth in metres and duration the length of stay at this depth, in minutes.
解释为c(depth, duration)其中depth米,深度在duration在这个深度,在几分钟内停留时间的长短。

interpreted as a waypoint depth in metres.  The diver will ascend or descend to this depth, at the current default rate of ascent or descent.
以米为一个航点的深度解释。潜水员将上升或下降到这个深度,在目前的拖欠率的上升或下降。

specifying a breathing gas. Such objects are created by the functions nitrox and trimix. The diver switches to this gas.
指定呼吸气体。这些对象被创建的功能nitrox和trimix。的潜水员切换到这种气体。




an argument of the form tank=n specifying a switch to another tank or cylinder of breathing gas. This is available only when the tanks used in the dive have been specified by the argument tanklist. The value n should be a valid index for this list (either a serial number in the tank list or a character string matching one of the names in the tank list).
参数的形式tank=n指定切换到另一个气缸或呼吸气体。这是只有当坦克在潜水中使用已指定的参数tanklist。值n应该是一个有效的索引列表(可以是序列号坦克列表中一个字符串匹配坦克列表中的名称之一)。

created by the functions ascent or descent. This resets the default rate of ascent or descent.
创建的功能ascent或descent。这将重置拖欠率的上升或下降。

containing a dive profile, usually uploaded from a dive computer. The first column should contain the elapsed times, and the second column contains the depths (in metres) measured at these times. The column of elapsed times can be either a character vector containing times in minutes-and-seconds format mm:ss, or an integer vector containing elapsed times in seconds, or a vector of class difftime representing elapsed times in any time unit.
包含潜水资料,上传的潜水电脑。第一列应包含的经过的时间,和第二列包含在这些时间测量的深度(米)。经过时间的列可以是一个字符向量含有次,分钟和秒的格式mm:ss,或含整数向量后经过的时间,以秒为单位,或类difftime代表经过时间的矢量任何时间单位。

representing a dive profile. This allows the user to paste dive profiles together.
一个潜水资料。这允许用户一起粘贴潜水公司。

Dives are assumed to start and finish at the surface (this can be changed by specifying values for begin and end).
富豪被认为是开始和结束的表面(这是可以改变的指定值的begin和end)。

Initially the descent rate is set to 30 metres per minute, the ascent rate is 18 metres per minute, and the breathing gas is air. These settings may be changed during the dive by the ... arguments.
最初的下降率被设置为每分钟30米,上升速率为每分钟18米,呼吸气体是空气。在潜水过程中的...参数可以改变这些设置。

A dive object may include periods spent at the surface (depth zero) and may therefore represent a succession of dives separated by surface intervals.
潜水的对象可以包括在表面(深度为零)略去的期间,并因此可能代表由表面的间隔分开的潜水继承。

Once an object of class "dive" has been created, it can be plotted and printed (using plot.dive and print.dive). The nitrogen saturation can be computed using haldane and the cumulative oxygen toxicity using oxtox.
一旦一个对象的类"dive"已经建立,它可以被绘制并打印(使用plot.dive和print.dive)。氮饱和度可以计算出使用haldane和累积氧毒性oxtox。


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

An object of class "dive" describing the dive profile and the breathing gases used.
类的一个对象"dive"描述的的潜水资料和所使用的呼吸气体。


修改跳水对象的----------Modifying a dive object----------

The depths and elapsed times at each waypoint during the dive can be extracted and changed using depths.dive and times.dive.
每个航点的深度和运行时间在潜水过程中可以提取和使用depths.dive和times.dive改变。

It is possible to alter the breathing gases used in a dive d, yielding a new dive object.  You simply modify the tanklist using tanklist(d) <- value.  This makes it possible to study the effect of conducting the same dive profile with a different breathing gas.
改变潜水d,得到一个新的潜水对象中使用的呼吸气体是可能的。您只要修改使用tanklist(d) <- valuetanklist,。这使得有可能研究进行相同的潜水配置文件与一个不同的呼吸气体的效果。


警告----------Warnings----------

Not suitable for representing altitude dives.
不适合用于表示海拔潜水。


(作者)----------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>




参见----------See Also----------

nitrox, ascent, descent, haldane, plot.dive, times.dive, durations.dive, depths.dive, chop.dive, tanklist.
nitrox,ascent,descent,haldane,plot.dive,times.dive,durations.dive,depths.dive,chop.dive,tanklist。


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


  # Dive to 25 m for 20 min followed by safety stop at 5 metres for 3 min[20分钟,然后由安全下潜到25米5米处停止3分钟]
  d <- dive(c(25,20),c(5,3))
  plot(d)

  # Bounce dive to 20 metres[反弹下潜至20米]
  d <- dive(20)

  # Two dives separated by a one-hour surface interval[两个分隔的一小时的表面间隔潜水]
  d <- dive(c(30,15),c(9,2),c(5,5),c(0,60),c(12,60),c(5,5))

  # ASCENT RATES[上升速度]
  # Ascent rate 18 m/min below 9 metres, 6m/min above 9 metres[上升速率低于9米,18米/分以上9米,为6m/min]
  d <- dive(c(30, 12), ascent(18), 9, ascent(6), c(5,3))

  # UPLOADED DIVE PROFILE[上传潜水资料]
  data(baron)
  pro <- baron[, 1:2]
  d <- dive(pro)
  plot(d)

  # GAS USE[使用燃气]
  # 30-metre dive on Nitrox 32[高氧潜水30米32]
  d <- dive(nitrox(0.32), c(30,20), c(5,5))

  # GAS SWITCHING[气体开关]
  # Dive to 18 m for 30 min on air,[30分钟对空气潜水18米,]
  # switch to Nitrox 36, ascend to 5 metres, safety stop[切换到高氧36,上升至5米,安全停止]
  d <- dive(c(18, 30), nitrox(0.36), c(5,3))
  # Same as above, but ascend to 5 m on air, then switch gas[与上述相同,但上升到5米的空气,然后切换气体]
  d <- dive(c(18, 30), 5, nitrox(0.36), c(5,3))

  # SWITCHING TO SPECIFIC TANKS[切换到具体TANKS]
  d <- dive(tanklist=list(main=air, deco=nitrox(0.50)),
            tank="main", c(30, 20), 5, tank="deco", c(5,10))

  # Descend to 5 metres on pure oxygen, switch to Trimix,[下降到5米的纯氧气,切换到混合气,]
  # descend to 30 metres, remain 40 minutes, ascend to 6 metres,[下降到30米,保持40分钟,上升到6米,]
  # switch to pure oxygen, ascend to 5 metres, decompress 10 minutes,[切换到纯净的氧气,上升到5米,解压缩10分钟,]
  # surface and continue breathing pure oxygen for 10 minutes[表面,并继续10分钟呼吸纯氧]

  d <- dive(tanklist=list(travel=trimix(0.15, 0.5), deco=nitrox(1)),
            tank="deco", 5, tank="travel", c(30,40), 6, tank="deco",
            c(5,10), c(0,10))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-15 21:49 , Processed in 0.026037 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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