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

R语言 sfsmisc包 iterate.lin.recursion()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:37:50 | 显示全部楼层 |阅读模式
iterate.lin.recursion(sfsmisc)
iterate.lin.recursion()所属R语言包:sfsmisc

                                        Generate Sequence Iterating a Linear Recursion
                                         迭代线性递推数生成序列

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

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

Generate numeric sequences applying a linear recursion nr.it times.
生成数字序列,应用线性递归nr.it倍。


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


iterate.lin.recursion(x, coeff, delta = 0, nr.it)



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

参数:x
numeric vector with initial values, i.e., specifying the beginning of the resulting sequence; must be of length (larger or) equal to length(coeff).
数值向量的初始值,即,指定所得到的序列的开头;长度必须为(较大或)等于length(coeff)。


参数:coeff
coefficient vector of the linear recursion.
线性递归系数向量。


参数:delta
numeric scalar added to each term; defaults to 0.  If not zero, determines the linear drift component.
数字标量添加到每个学期,默认为0。如果不为零,确定线性漂移分量。


参数:nr.it
integer, number of iterations.
整数,迭代次数。


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

numeric vector, say r, of length n + nr.it, where n = length(x). Initialized as r[1:n] = x, the recursion is r[k+1] = sum(coeff * r[(k-m+1):k]), where m = length(coeff).
数值向量,说r,长度n + nr.it,n = length(x)。初始化为r[1:n] = x中,递归r[k+1] = sum(coeff * r[(k-m+1):k]),其中m = length(coeff)。


注意----------Note----------

Depending on the zeroes of the characteristic polynomial of coeff, there are three cases, of convergence, oszillation and divergence.
根据coeff的特征多项式的零点,有三种情况,收敛的震动和分歧。


(作者)----------Author(s)----------


Martin Maechler



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

seq can be regarded as a trivial special case.
seq可以被看作是一个可有可无的特殊情况。


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


## The Fibonacci sequence:[#斐波那契数列:]
iterate.lin.recursion(0:1, c(1,1), nr = 12)
## 0 1 1 2 3 5 8 13 21 34 55 89 144 233[#0 1 1 2 3 5 8 13 21 34 55 89 144 233]

## seq() as a special case:[#SEQ()作为一个特殊的情况:]
stopifnot(iterate.lin.recursion(4,1, d=2, nr=20)
          == seq(4, by=2, length=1+20))

## ``Deterministic AR(2)'' :[#确定性AR(2)“:]
round(iterate.lin.recursion(1:4, c(-0.7, 0.9), d = 2, nr=15), dig=3)
## slowly decaying :[#慢慢地腐烂:]
plot(ts(iterate.lin.recursion(1:4, c(-0.9, 0.95), nr=150)))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 06:43 , Processed in 0.019223 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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