当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


R语言 qweibull()用法及代码示例


qweibull()R语言中的函数用于计算威布尔分布的分位数函数值。

用法: qweibull(x, shape)

参数:
x:数字向量
shape:形状参数

范例1:


# R Program to compute the value of
# Quantile Weibull Function
  
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.2)
  
# Calling qweibull() Function
y <- qweibull(x, shape = 0.5)
y

输出:

[1] 0.00000000 0.04979304 0.26094282 0.83958871 2.59029039        Inf

范例2:


# R Program to compute the value of
# Quantile Weibull Function
  
# Creating a sequence of x-values
x <- seq(0, 1, by = 0.02)
  
# Calling qweibull() Function
y <- qweibull(x, shape = 0.7)
  
# Plot a graph
plot(y)

输出:

相关用法


注:本文由纯净天空筛选整理自nidhi_biet大神的英文原创作品 Compute the Value of Quantile Function over Weibull Distribution in R Programming – qweibull() Function。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。