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

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

[复制链接]
发表于 2012-9-30 02:36:09 | 显示全部楼层 |阅读模式
approxTime(simecol)
approxTime()所属R语言包:simecol

                                        Linear Interpolation with Complete Matrices or Data Frames
                                         完整的矩阵或数据框的线性插值

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

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

Return a data frame, matrix or vector which linearly interpolates data from a given matrix or data frame.
返回的数据框,矩阵或矢量的线性内插从一个给定的矩阵或数据框的数据。


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


approxTime(x, xout, ...)
approxTime1(x, xout, rule = 1)



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

参数:x
a matrix or data frame with numerical values giving coordinates of points to be interpolated. The first column is interpreted as independend variable (e.g. time), the remaining columns as dependend variables.   
数值为坐标点矩阵或数据框插补。被解释为无关!变量(如时间)时效关系的变量,其余各列的第一列。


参数:xout
a vector (or single value for approxTime1) of independend values specifying where interpolation has to be done.   
一个向量(或单值approxTime1)无关!值,指定在插有许多工作要做。


参数:rule
an integer describing how interpolation is to take place outside the interval [min(x), max(x)]. If rule is 1 then NAs are returned for such points and if it is 2, the value at the closest data extreme is used.   
一个整数来描述如何插以外发生的时间间隔[MIN(X),最大(X)]。如果rule是1,那么NAs的返回这样的点,如果它是如图2所示,在最近的数据的极端值。


参数:...
optional parameters passed to approx.
可选的参数传递给approx。


Details

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

The functions can be used for linear interpolation with a complete matrix or data frame. This can be used for example in the main function of an odeModel to get input values at a specified time xout. The version approxTime1 is less flexible (only one single value for xout and only linear interpolation) but has increased performance.  Both functions are faster if x is a matrix instead of a data frame.
具有完备的矩阵或数据框的功能都可以用于线性内插。这可以用于例如在一个odeModel来获得输入值,在指定的时间xout的主要功能。版本approxTime1是不够灵活(XOUT,只有线性插值只有一个值),但提高了性能。这两个函数是x是一个矩阵,而不是一个数据框的速度更快。


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

approxTime returns a matrix resp. data frame of the same structure as x containing data which interpolate the given data with respect to xout.  approxTime1 is a performance optimized special version with less options than the original approx function. It returns an interpolated vector.
approxTime返回一个矩阵的RESP账户。数据框相同的结构x包含数据的内插的给定的数据相对于xout。 approxTime1是一个性能优化的特殊版本,比原来的approx的函数少的选项。它返回一个插矢量。


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

approxfun
approxfun


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


inputs <- data.frame(time = 1:10, y1 = rnorm(10), y2 = rnorm(10, mean = 50))
input  <- approxTime(inputs, c(2.5, 3), rule = 2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 23:17 , Processed in 0.038623 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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