R语言_Simulation
来源:互联网 发布:淘宝裕伟专卖店女装 编辑:程序博客网 时间:2024/05/21 10:07
# uniformx1 = runif(1000,min=0,max=1)# normx2 = rnorm(1000,mean=0,sd=1)# exponentialx3 = rexp(1000,rate=1)# tx4 = rt(1000,df=3)# binomx5 = rbinom(n=1000,size=3,prob=0.7)# hist gramhist(x1)hist(x2)hist(x3)hist(x4)hist(x5)# vector params and non-iid(independent-identical-distribution)-samples obtained# generates 100 samples from the contaminated normal distribution# in which a sample is from N(0,1) with probability 0.95# and otherwise from N(0,3)contam = rnorm(100,0,(1+2*rbinom(100,1,0.05)))hist(contam)#sample
参考资料
- portal.stats
0 0
- R语言_Simulation
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言
- R语言:R操作RMySQL
- R语言-理解R性能
- 在Mac系统下发布Qt程序详细教程
- WebService到底是什么?
- BestCoder Round #54 (div.1)
- 反渗透设备:反渗透纯净水处理设备特点
- 2015年总结-收获
- R语言_Simulation
- linux socket通信编程
- Android手机智能定位并在地图上显示地址
- shell编程(条件判断与流程控制)学习笔记
- view透明度渐变
- hdu(2844)——Coins(多重背包+优化)
- tomcat绿色版及安装版修改内存大小的方法
- hdu 5430 Reflect(欧拉函数)
- 图书馆Demo完成后总结