bestdoubledive(scuba)
bestdoubledive()所属R语言包:scuba
Find the Best Double Dive To Given Depths
双找到最好的潜水给定的深渊
译者:生物统计家园网 机器人LoveR
描述----------Description----------
For two no-decompression dives, to depths d1 and d2 metres respectively, separated by a given time interval, find the optimal durations of the two dives.
对于两个无减压潜水,深度d1和d2米,分别由给定的时间间隔,分离,发现两个潜水的最佳时间的。
用法----------Usage----------
bestdoubledive(d1, d2, surface = 30, verbose = FALSE, model = "D", asdive=TRUE)
参数----------Arguments----------
参数:d1
Depth of first dive in metres.
以米为单位的第一次潜水的深度。
参数:d2
Depth of second dive in metres.
第二次潜水米的深度。
参数:surface
Length of surface interval between dives, in minutes.
潜水的表面之间的时间间隔,以分钟为单位的长度。
参数:verbose
Logical. If TRUE, print lots of extra information, and return extra information. If FALSE (the default), just return the optimal dive.
逻辑。如果TRUE,打印大量的额外的信息,并返回额外的信息。如果FALSE(默认值),只是返回的最佳潜水。
参数:model
The decompression model. Either a character string, containing the name of a decompression model recognised by pickmodel, or an object of class "hm" (created by hm) representing a decompression model. Defaults to the DSAT model.
减压模式。无论是一个字符串,包含的减压模式的认可pickmodel的名称,或一个类的对象"hm"(hm),较减压模式。默认的DSAT模型。
参数:asdive
Logical. If TRUE (the default), the data for the optimal dive are converted into a dive object (object of class "dive"). If FALSE, the data are returned as a data frame.
逻辑。如果TRUE(默认值),最佳潜水的数据被转换成一个潜水对象(类的对象"dive"“)。如果FALSE,返回的数据作为一个数据框。
Details
详细信息----------Details----------
This command implements the algorithm described by Baddeley and Bassom (2012) which calculates the "best" double dive to two given depths separated by a given surface interval, without exceeding the no-decompression limits.
该命令实现所描述的算法巴德利和Bassom的“最好”的双重潜水(2012年),其计算两个给定的表面间隔的深度分离,不超过不减压界限。
Consider a no-decompression dive to depth d1 metres for t1 minutes, followed by a surface interval of s minutes, followed by a no-decompression dive to depth d2 for t2 minutes. The "best" double dive is defined by Baddeley and Bassom (2012) as the one which maximises the integral of depth Phi = t1 * d1 + t2 * d2.
考虑不减压潜水深度d1米t1分钟,其次是表面s分钟的间隔,不减压潜水深度d2 t2分钟。双潜水的最好的定义(2012年)的巴德利和Bassom的作为一个深度Phi = t1 * d1 + t2 * d2其中最大的积分。
值----------Value----------
By default (when verbose=FALSE and asdive=TRUE) the result is a dive object (object of class "dive").
默认情况下(当verbose=FALSE和asdive=TRUE)的结果是一个潜水的对象(类的对象"dive")。
Otherwise, the result is a data frame with columns t1 and t2 containing the dive durations in minutes, phi containing the value of Phi, and case specifying which of the cases specified in Baddeley and Bassom (2012) provided the optimum. If verbose=FALSE this data frame has only one row, giving the best double dive. If verbose=TRUE then the data frame has several rows giving the candidates for optimal dive in each case of the algorithm.
否则,结果是一个数据框t1和t2潜水持续时间以分钟为单位,phi包含的价值Phi的,和case指定的列(2012年)Baddeley和Bassom指定的情况下提供了最佳的。如果verbose=FALSE这个数据框只有一个行,提供最佳的双潜水。如果verbose=TRUE然后将数据框有几行给候选人的算法在各种情况下的最佳潜水。
(作者)----------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>
参考文献----------References----------
Classical theory of decompression and the design of scuba diving tables. To appear in The Mathematical Scientist.
参见----------See Also----------
pickmodel, hm, ndl, haldane
pickmodel,hm,ndl,haldane
实例----------Examples----------
d <- bestdoubledive(40, 12, 15)
plot(d)
# Table 3 in Baddeley and Bassom (2012)[表3 Baddeley和Bassom(2012年)]
bestdoubledive(40, 12, 15, verbose=TRUE)
# Data for optimal dive[最佳潜水的数据]
bestdoubledive(40, 12, 15, asdive=FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|