在 R 编程中计算 Weibull 分布上的分位数函数的值 – qweibull()函数
R 语言中的qweibull()
函数用于计算 Weibull 分布的分位数函数的值。
Syntax: qweibull(x, shape)
Parameters:
x: Numeric Vector
shape: Shape Parameter
示例 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)
输出: