R语言 计算Weibull累积密度的值 – pweibull()函数

R语言 计算Weibull累积密度的值 – pweibull()函数

R语言中的 pweibull() 函数用于计算Weibull分布的累积分布函数的值。它还为累积Weibull函数绘制了一个密度图。

语法: pweibull(x, shape)

参数:

x: 数字向量

shape: 形状参数

例1 :

# R Program to compute
# Cumulative Weibull Density
  
# Creating a sequence of x-values
x <- seq(-5, 15, by = 1)
  
# Calling pweibull() Function
y <- pweibull(x, shape = 0.2)
y
R

输出

 [1] 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.6321206
 [8] 0.6829508 0.7122695 0.7327332 0.7483534 0.7609229 0.7713981 0.7803493
[15] 0.7881434 0.7950303 0.8011877 0.8067464 0.8118052 0.8164408 0.8207138
R

例2 :

# R Program to compute
# Cumulative Weibull Density
  
# Creating a sequence of x-values
x <- seq(-5, 15, by = 0.2)
  
# Calling pweibull() Function
y <- pweibull(x, shape = 0.5)
  
# Plot a graph
plot(y)
R

输出:

在R语言编程中计算Weibull累积密度的值 - pweibull函数

Python教程

Java教程

Web教程

数据库教程

图形图像教程

大数据教程

开发工具教程

计算机教程

登录

注册