R语言学习笔记 |
您所在的位置:网站首页 › r语言随机生成数 › R语言学习笔记 |
norm(n, x, y): 产生n个平均数为x,标准差为y的数。 默认情况下,平均数为0, 标准差 为1。 rnorm(n, mean = 0, sd = 1):r = random = 随机; 随机产生n个平均数为0,标准差为1的数 > x x [1] -0.935060796 -0.530718899 -0.006539408 0.636192298 -0.158795422 > a a [1] 3.346883 2.572394 7.881060 10.843430 13.368728替换成dnorm, pnorm, qnorm 作不同计算 d= density = 密度, p= probability = 概率 , q =quantile = 分位 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |