{"published":"2011-07-01 10:11:40","categories":["R"],"author_name":"ryamada22","blog_title":"ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2","image_url":"http://www.genome.med.kyoto-u.ac.jp/func-gen-photo/albums/StatGenetTextbook/PartIII-014.jpeg","title":"\u300c\u675f\u300d\u540c\u58eb\u3092\u30da\u30a2\u30ef\u30a4\u30ba\u3067\u51e6\u7406\u3059\u308b","provider_name":"Hatena Blog","blog_url":"https://ryamada22.hatenablog.jp/","type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/ryamada22/","provider_url":"https://hatena.blog","description":"\u884c\u30d9\u30af\u30c8\u30eb\u306e\u30da\u30a2\u306e\u5185\u7a4d\u3092\u8a08\u7b97\u3059\u308b N1<-4 N2<-3 M<-matrix(runif(N1*N2),N1,N2) # \u5404\u884c\u3092\u5358\u4f4d\u30d9\u30af\u30c8\u30eb\u306b\u3059\u308b # \u307e\u305a\u9577\u3055\u3092\u8a08\u7b97\u3059\u308b L<-sqrt(apply(M^2,1,sum)) # \u5404\u884c\u3092\u5404\u884c\u30d9\u30af\u30c8\u30eb\u306e\u9577\u3055\u3067\u5272\u3063\u3066\u5358\u4f4d\u30d9\u30af\u30c8\u30eb\u306b\u3059\u308b M2<-M/L M2 # \u5358\u4f4d\u30d9\u30af\u30c8\u30eb\u3067\u3042\u308b\u3053\u3068\u306e\u78ba\u8a8d\u3092\u3059\u308b apply(M2^2,1,sum) # \u4ee5\u4e0b\u306e\u5f0f\u3067\u30da\u30a2\u30ef\u30a4\u30ba\u306e\u5185\u7a4d\u304c\u8a08\u7b97\u3067\u304d\u308b # \u5358\u4f4d\u884c\u5217\u306a\u306e\u3067cos(\u89d2\u5ea6)\u306b\u306a\u3063\u3066\u3044\u308b M2%*%t(M2) \u884c\u30d9\u30af\u30c8\u30eb\u306e\u30da\u30a2\u306b\u8ddd\u96e2\u3092\u5b9a\u7fa9\u3057\u3066\u968e\u5c64\u7684\u30af\u30e9\u30b9\u30bf\u30ea\u30f3\u30b0\u3059\u308b N1<-4 N2<-20 M<-matrix(run\u2026","height":"190","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20110701%2F1309569100\" title=\"\u300c\u675f\u300d\u540c\u58eb\u3092\u30da\u30a2\u30ef\u30a4\u30ba\u3067\u51e6\u7406\u3059\u308b - ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://ryamada22.hatenablog.jp/entry/20110701/1309569100"}