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

R语言 sfsmisc包 polyn.eval()函数中文帮助文档(中英文对照)

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

                                        Evaluate Polynomials
                                         评估多项式

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

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

Evaluate one or several univariate polynomials at several locations, i.e. compute coef[1] + coef[2]*x + ... + coef[p+1]* x^p (in the simplest case where x is scalar and coef a vector).
评价一个或几个单变量多项式在不同的位置,即计算coef[1] + coef[2]*x + ... + coef[p+1]* x^p(在最简单的情况下,x是一个标量和coef一个向量)。


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


polyn.eval(coef, x)



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

参数:coef
numeric vector or matrix.  If a vector, x can be an array and the result matches x.<br> If coef is a matrix it specifies several polynomials of the same degree as rows, x must be a vector, coef[,k] is for x^(k-1) and the result is a matrix of dimension length(x) * nrow(coef).
数值向量或矩阵。如果一个向量,x可以是一个数组和结果匹配x。<br>如果中coef是一个矩阵,它指定相同程度的行的若干多项式,x 必须是一个向量,coef[,k]为x^(k-1)和的结果是一个矩阵的维度length(x) * nrow(coef)。


参数:x
numeric vector or array.  Either x or coef must be a vector.
数值向量或数组。无论是x或coef必须是矢量。


Details

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

The stable &ldquo;Horner rule&rdquo; is used for evaluation in any case.
的稳定的的“霍纳尔规则”在任何情况下,用于评估。


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

numeric vector or array, depending on input dimensionalities, see above.
数字向量或数组,根据输入维度,见上面。


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


Martin Maechler, ages ago.



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

For much more sophisticated handling of polynomials, use the polynom package, e.g. predict.polynomial.
对于更为复杂的多项式处理,使用polynom包,例如: predict.polynomial。


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


polyn.eval(c(1,-2,1), x = 0:3)# (x - 1)^2[(X  -  1)^ 2]
polyn.eval(c(0, 24, -50, 35, -10, 1), x = matrix(0:5, 2,3))# 5 zeros![5个零!]
(cf <- rbind(diag(3), c(1,-2,1)))
polyn.eval(cf, 0:5)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 05:35 , Processed in 0.023459 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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