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

R语言:fractions()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 20:16:06 | 显示全部楼层 |阅读模式
fractions(MASS)
fractions()所属R语言包:MASS

                                         Rational Approximation
                                         有理逼近

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

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

Find rational approximations to the components of a real numeric object using a standard continued fraction method.
找到一个真正的数字对象,使用标准的连分数方法的组成部分的合理近似。


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


fractions(x, cycles = 10, max.denominator = 2000, ...)



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

参数:x
Any object of mode numeric. Missing values are now allowed.  
任何数值模式的对象。现在允许缺失值。


参数:cycles
The maximum number of steps to be used in the continued fraction approximation process.  
要在继续分式逼近过程中使用的最大步骤数。


参数:max.denominator
An early termination criterion.  If any partial denominator exceeds max.denominator the continued fraction stops at that point.  
提前终止准则。如果任何部分分母超过max.denominator连分数在这一点上停止。


参数:...
arguments passed to or from other methods.  </table>
参数传递或其他方法。 </ TABLE>


Details

详情----------Details----------

Each component is first expanded in a continued fraction of the form
每个组件是首次在分数的形式继续扩大

x = floor(x) + 1/(p1 + 1/(p2 + ...)))
x = floor(x) + 1/(p1 + 1/(p2 + ...)))

where p1, p2, ... are positive integers, terminating either at cycles terms or when a pj > max.denominator.  The continued fraction is then re-arranged to retrieve the numerator and denominator as integers.
p1,p2,...是正整数,cycles条款或终止时pj > max.denominator。持续的分数,然后重新安排,以检索为整数分子和分母。

The numerators and denominators are then combined into a character vector that becomes the "fracs" attribute and used in printed representations.
分子和分母然后组合成一个字符的向量,成为"fracs"属性和印刷交涉。

Arithmetic operations on "fractions" objects have full floating point accuracy, but the character representation printed out may not.
算术操作"fractions"对象有充分的浮点精确度,但打印出的字符表示可能不会。


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

An object of class "fractions".  A structure with .Data component the same as the input numeric x, but with the rational approximations held as a character vector attribute, "fracs". Arithmetic operations on "fractions" objects are possible.
对象类"fractions"。与.Data组件的结构作为输入相同的数字x,但作为一个字符向量属性,"fracs"举行的有理逼近。 "fractions"对象的算术运算是可能的。


参考文献----------References----------

Modern Applied Statistics with S. Fourth Edition. Springer.

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

rational
rational


举例----------Examples----------


X <- matrix(runif(25), 5, 5)
zapsmall(solve(X, X/5)) # print near-zeroes as zero[打印为零的近零]
fractions(solve(X, X/5))
fractions(solve(X, X/5)) + 1

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-6 17:40 , Processed in 0.020907 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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