<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kurene</author_name>
  <author_url>https://blog.hatena.ne.jp/Kurene/</author_url>
  <blog_title>Wizard Notes</blog_title>
  <blog_url>https://www.wizard-notes.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>matplotlib</anon>
  </categories>
  <description>ゲームやCGの実装をしていると,「いい感じに偏った乱数が欲しい」と思うことが多々あります*1。 よく知られている方法として、rand関数などで算出した一様乱数を元に逆関数法で乱数を作ることができます。 ただ、数式の意味が分かりにくいところもあります。 そこで、備忘録として逆関数法を理解をまとめ、また、Pythonで実装してみました。 逆関数法の理解 逆関数法の説明は、以下の資料が分かりやすいです。 Rで学ぶ逆変換（逆関数）法 from Nagi Teramo C言語による乱数生成 ただし、いきなり○○分布の累積密度関数の逆関数から考えると分かりにくい気がします。 結局のところ、図のように [0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fpython%2Finverse-transform-method&quot; title=&quot;逆関数法で一様分布・指数分布と算出（Python実装） - Wizard Notes&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://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20191108/20191108094047.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-08 11:19:06</published>
  <title>逆関数法で一様分布・指数分布と算出（Python実装）</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/python/inverse-transform-method</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
