R语言 计算Weibull分布的量化函数值 – qweibull()函数
R语言中的 qweibull() 函数是用来计算Weibull分布的量化函数值的。
语法: 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)
输出:

极客教程