<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>中央値(平均値)から、最小値と最大値に向けて左右対称で線形に出現確率が低くなるようなものには、std::piecewise_linear_distributionを使うのがよさそう。 std::normal_distributionは、与えるパラメータが平均値と標準偏差で、「平均値 ± 標準偏差」を超える値も出現するから、その外れ値を望まない場合に、std::piecewise_linear_distributionで代用できそう。 これは、正規分布がほしい、という状況ではなく、中央値付近の値がほしい、という状況です。 #include &lt;random&gt; #include &lt;array&gt; #i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2014%2F12%2F26%2F140451&quot; title=&quot;正規分布の代わりに区間線形分布を使うのもいいかも - Faith and Brave - C++で遊ぼう&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>http://cdn-ak.f.st-hatena.com/images/fotolife/f/faith_and_brave/20141226/20141226140153.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-12-26 14:04:51</published>
  <title>正規分布の代わりに区間線形分布を使うのもいいかも</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/2014/12/26/140451</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
