{"categories":[],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20070909%2F1189340158\" title=\"\u30d9\u30ad\u5206\u5e03\u3067\u904a\u3093\u3067\u307f\u308b - yasuhisa&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"syou6162","description":"id:mrkn\u3055\u3093\u304c\u30d9\u30ad\u5206\u5e03\u3092\u751f\u6210\u3059\u308bR\u306e\u95a2\u6570\u3092\u66f8\u3044\u3066\u304f\u308c\u305f\u306e\u3067\u3001\u4f8b\u306e\u3084\u3064\u3092\u66f8\u3044\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u3002 > rzipf function (n, s=1, q=0, supp=c(1,n)) { x <- supp[1]:supp[2] p <- 1/(x + q)**s y <- sample(x, n, replace=T, prob=p) return(y) } > hist(rzipf(10000),nclass=50,plot=FALSE) hist(rzipf(10000),nclass=50,plot=FALSE) $breaks [1] 0 200 400 600 800 1\u2026","version":"1.0","published":"2007-09-09 21:15:58","blog_url":"https://www.yasuhisay.info/","width":"100%","blog_title":"yasuhisa's blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/syou6162/","provider_name":"Hatena Blog","url":"https://www.yasuhisay.info/entry/20070909/1189340158","image_url":"http://farm2.static.flickr.com/1318/1350692964_f6df3e5699.jpg?v=0","height":"190","title":"\u30d9\u30ad\u5206\u5e03\u3067\u904a\u3093\u3067\u307f\u308b"}