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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|