<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>alcuin</author_name>
  <author_url>https://blog.hatena.ne.jp/alcuin/</author_url>
  <blog_title>Thinking out loud</blog_title>
  <blog_url>https://alcuin.hatenablog.com/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>データ分析</anon>
  </categories>
  <description>お仕事で、べき乗分布(power-law)に従った乱数発生をする必要が生じたので、さくっと。 べき乗分布の乱数 検索したら出てきたのがこれ。 Random Number -- from Wolfram MathWorld べき乗分布に従った乱数は、がの一様乱数、がべき乗係数、のとき、以下となる。 とりあえず、べき乗分布乱数を発生させる関数、rpowerlaw() をほげってみる。 rpowerlaw &lt;- function (n, dist.power = 0, x0 = 0, x1 = 1) { sapply(runif(n), function (x.unif) (((x1 ^(dist.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Falcuin.hatenablog.com%2Fentry%2F2013%2F03%2F25%2F044624&quot; title=&quot;Rでべき乗分布(power-law)分布の乱数生成 - Thinking out loud&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://dl.dropbox.com/u/356673/hoge.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-25 04:46:24</published>
  <title>Rでべき乗分布(power-law)分布の乱数生成</title>
  <type>rich</type>
  <url>https://alcuin.hatenablog.com/entry/2013/03/25/044624</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
