在 R 编程中计算累积对数正态概率密度 – plnorm()函数
R语言中的plnorm()
函数用于计算累积概率密度函数的对数正态值。它还创建了对数正态密度的累积分布图。
Syntax: plnorm(vec)
Parameters:
vec: x-values for normal density
示例 1:
# R program to compute cumulative
# log normal probability density
# Creating x-values for density
x <- seq(1, 10, by = 1)
# Calling plnorm() function
y <- plnorm(x)
y
输出:
[1] 0.5000000 0.7558914 0.8640314 0.9171715 0.9462397 0.9634142 0.9741672
[8] 0.9812116 0.9859978 0.9893489
示例 2:
# R program to compute cumulative
# log normal probability density
# Creating x-values for density
x <- seq(1, 10, by = 0.1)
# Calling plnorm() function
y <- plnorm(x)
# Plot a graph
plot(y)
输出: