
R code for "ESL"
艳艳儿
这个作者很懒,什么都没留下…
展开
-
[ESL] Chapter 2(一)
Figure 2.1 - 2.5Firstly, the mixture Gaussian function is given by######################generate mixture Gaussian#############library(MASS) # generate means of mixture Gaussian blueMeans <- mvrnorm(10,原创 2016-01-08 11:43:52 · 848 阅读 · 0 评论 -
[code] Chap 10 for ESL
Figure 10.2 Firstly define the function to generate simulated data. # function for generating data for figure 10.2 gen_eq_10_2_data &amp;amp;amp;lt;- function(N = 2000, p = 10){ X &amp;amp;amp;lt;- matrix( rnorm(N*p), ...原创 2018-12-13 22:25:40 · 377 阅读 · 0 评论