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

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

[复制链接]
发表于 2012-9-30 10:32:12 | 显示全部楼层 |阅读模式
piece(smoothSurv)
piece()所属R语言包:smoothSurv

                                         Left Continuous Piecewise Constant Function with a Finite Support.
                                         左连续分段常数函数与有限的支持。

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

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

Function to evaluate a left continuous piecewise constant function with a finite support.
函数来评估一个左连续分段常数函数与有限的支持。


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


    piece(x, breaks, values)



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

参数:x
Vector of values where the piecewise constant function should be evaluated.  
分段常数函数应评估值的向量。


参数:breaks
Vector of sorted breakpoints of the piecewise constant function.  
向量的排序断点的分段常数函数。


参数:values
Values of the piecewise constant function. It takes the value value[i] on the interval (breaks[i], breaks[i+1]].  The function is assumed to be zero outside its range specified as (breaks[1], breaks[length(breaks)]]. The length of the vector values must be equal to length(breaks) - 1  
分段常数函数值。需要的价值value[i]的时间间隔(breaks[i], breaks[i+1]]。该函数被假定为零的范围之外指定为(breaks[1], breaks[length(breaks)]]。长度的向量values必须等于length(breaks) - 1


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

The value of the piecewise constant function.
分段常数函数的值。


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



Arno拧t Kom谩rek <a href="mailto:arnost.komarek[AT]mff.cuni.cz">arnost.komarek[AT]mff.cuni.cz</a>




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


my.breaks <- c(-2, 1.5, 4, 7)
my.values <- c(0.5, 0.9, -2)
grid <- seq(-3, 8, by = 0.25)
piece(grid, my.breaks, my.values)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-29 07:43 , Processed in 0.032456 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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