{"id":1563,"date":"2013-02-06T23:03:23","date_gmt":"2013-02-06T14:03:23","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=1563"},"modified":"2013-02-06T23:14:12","modified_gmt":"2013-02-06T14:14:12","slug":"c11%e3%81%aestddiscrete_distribution%e3%81%a7%e3%83%8e%e3%83%b3%e3%83%91%e3%83%a9%e3%83%a1%e3%83%88%e3%83%aa%e3%83%83%e3%82%af%e3%81%aa%e5%88%86%e5%b8%83%e3%81%ae%e4%b9%b1%e6%95%b0%e7%94%9f","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=1563","title":{"rendered":"C++11\u306estd::discrete_distribution\u3067\u30ce\u30f3\u30d1\u30e9\u30e1\u30c8\u30ea\u30c3\u30af\u306a\u5206\u5e03\u306e\u4e71\u6570\u751f\u6210"},"content":{"rendered":"<p>\u304a\u3055\u304b\u306a\u304a\u3055\u304b\u306a\u3063\u3066\u8a00\u3063\u3066\u305f\u3089\u30ea\u30a2\u30eb\u306b\u304a\u9b5a\u597d\u304d\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3063\u3066\u8a71\u306f\u524d\u3082\u3057\u305f\u3068\u601d\u3046\u3093\u3067\u3059\u304c\uff0c\u305d\u306e\u305b\u3044\u3067\u30db\u30f3\u30c8\u306b\u9b5a\u304c\u98df\u3079\u305f\u3044\u4eca\u65e5\u3053\u306e\u3054\u308d\u3067\u3059\uff0e\u8abf\u7406\u6cd5\u3068\u3057\u3066\u306f\uff0c\u304a\u523a\u8eab\u306e\u6b21\u70b9\u304f\u3089\u3044\u3067\u713c\u304d\u9b5a\u3068\u9152\u84b8\u3057\u304c\u597d\u304d\u3067\u3059\uff0e\u304a\u523a\u8eab\u306f\u305d\u306e\u307e\u307e\u30b9\u30fc\u30d1\u30fc\u3067\u8cb7\u3063\u3066\u304f\u308c\u3070\u3044\u3044\u3057\uff08\u7f8e\u5473\u3057\u3044\u304b\u3068\u8a00\u308f\u308c\u308b\u3068\u5fae\u5999\u3067\u3059\u304c\uff09\uff0c\u713c\u304d\u9b5a\u3082\u8cb7\u3063\u3066\u304d\u3066\u30b0\u30ea\u30eb\u3067\u713c\u304f\u3060\u3051\u306a\u306e\u3067\u6c17\u8efd\u306b\u3067\u304d\u308b\u3093\u3067\u3059\u304c\uff0c\u9152\u84b8\u3057\u306f\u3061\u3087\u3063\u3068\u81ea\u5b85\u3067\u306f\u3067\u304d\u306a\u304f\u3066\u98df\u5353\u304c\u5bc2\u3057\u3044\u3067\u3059\uff0e<\/p>\n<p>\u3055\u3066\uff0cC++11\u3067\u306f\u4e71\u6570\u95a2\u9023\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3064\u3044\u3066\u3082boost\u7531\u6765\u306e\u5927\u5e45\u5f37\u5316\u304c\u3055\u308c\u307e\u3057\u3066\uff0c\u30db\u30f3\u30c8\u306b\u5f37\u529b\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e<br \/>\n\u307e\u305a<strong>\u4e71\u6570\u30a8\u30f3\u30b8\u30f3<\/strong>\u3067\u306f\uff0c\u3088\u308a\u3088\u3044\u64ec\u4f3c\u4e71\u6570\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u8c4a\u5bcc\u306b\u53d6\u308a\u63c3\u3048\u3089\u308c\u3066\u304a\u308a\uff0c\u3055\u3089\u306b\u306f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u5229\u7528\u3057\u305f\u771f\u306e\u4e71\u6570\u3082\u6271\u3048\u307e\u3059\uff0e<br \/>\n\u307e\u305f\u751f\u6210\u3055\u308c\u308b<strong>\u4e71\u6570\u306e\u5206\u5e03<\/strong>\u306e\u70b9\u3067\u3082\uff0c\u901a\u5e38\u306e\u4e00\u69d8\u5206\u5e03\u3084\u5404\u7a2e\u306e\u78ba\u7387\u5206\u5e03\uff08Gaussian\u3084Poisson\u306a\u3069\uff09\u304c\u5229\u7528\u3067\u304d\u307e\u3059\uff0e<\/p>\n<p>\u4eca\u65e5\u304a\u8a71\u3059\u308b\u306e\u306f\u5206\u5e03\u306e\u4e2d\u3067\u3082\uff0c\u51fa\u529b\u3055\u308c\u308b\u5404\u5024\u306e\u78ba\u7387\u3092\u30e6\u30fc\u30b6\u304c\u6307\u5b9a\u3067\u304d\u308b<strong>\u30ce\u30f3\u30d1\u30e9\u30e1\u30c8\u30ea\u30c3\u30af\u306a\u5206\u5e03\u3092\u5b9f\u73fe\u3059\u308bstd::discrete_distribution<\/strong>\u306e\u304a\u8a71\uff0e<\/p>\n<p>\u306a\u304aboost::random\u304b\u3089std::random\u3078\u306f\u5927\u304d\u306a\u8a2d\u8a08\u5909\u66f4\u304c\u3042\u308a\u307e\u3057\u305f\u3051\u308c\u3069\u3082\uff0c\u4eca\u56de\u306e\u8a71\u306b\u95a2\u3057\u3066\u306f\u666e\u901a\u306bstd::discreted_distribution\u3092boost::random::discrete_distribution\u3068\u305d\u306e\u307e\u307e\u8aad\u307f\u66ff\u3048\u3066\u3082\u3089\u3063\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\uff0e<\/p>\n<p>[:contents]<\/p>\n<p><!--more--><\/p>\n<p>*\u3084\u308a\u305f\u3044\u3053\u3068<br \/>\n\u304a\u307f\u304f\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\uff0e<br \/>\n-\u5927\u5409\uff1a1%<br \/>\n-\u4e2d\u5409\uff1a9%<br \/>\n-\u5c0f\u5409\uff1a25%<br \/>\n-\u5409\uff1a25%<br \/>\n-\u672b\u5409\uff1a30%<br \/>\n-\u51f6\uff1a9%<br \/>\n-\u5927\u51f6\uff1a1%<br \/>\n\u3068\u3044\u3046\u51fa\u73fe\u78ba\u7387\u3068\u3057\u307e\u3059\uff0e<\/p>\n<p>\u30d9\u30bf\u306b\u3084\u308b\u3068\uff0c0\u301c99\u307e\u3067\u306e\u4e00\u69d8\u4e71\u6570\u3092\u751f\u6210\u3057\uff0c\u3069\u306e\u7bc4\u56f2\u306b\u5c5e\u3059\u308b\u304b\u81ea\u5206\u3067\u5224\u5b9a\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff0e<\/p>\n<p><script src=\"https:\/\/gist.github.com\/sakanazensen\/4722578.js\"><\/script><\/p>\n<p>\u51fa\u529b\u4f8b\u306f\u3053\u3093\u306a\u304b\u3093\u3058\uff0e\u78ba\u304b\u306b\u5c0f\u5409\u3084\u5409\u3084\u672b\u5409\u304c\u591a\u3044\u3067\u3059\u306d\uff0e\u3053\u308c\u898b\u3066\u308b\u3068\u30b2\u30b7\u30e5\u30bf\u30eb\u30c8\u5d29\u58ca\u3057\u3066\u304d\u3066\u3042\u304b\u3093\u30fb\u30fb\u30fb<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\u5c0f\u5409 \u5409 \u51f6 \u5c0f\u5409 \u5c0f\u5409 \u5409\u672b \u5c0f\u5409 \u5927\u51f6 \u5927\u51f6 \u51f6 \u5409 \u51f6 \u5c0f\u5409 \u5409 \u5c0f\u5409 \u5927\u5409 \u5c0f\u5409 \u5409 \u5409 \u5409\u672b \u5409 \u5409\u672b \u5c0f\u5409 \u5409 \u5409\u672b \u5409 \u5409\u672b \u5409\u672b \u5c0f\u5409 \u5c0f\u5409\r\n<\/pre>\n<p>\u3053\u308c\u306f\u8a18\u8ff0\u91cf\u3060\u3051\u3067\u3082\u306a\u304b\u306a\u304b\u3081\u3093\u3069\u304f\u3055\u3044\u3057\uff0c\u51fa\u73fe\u78ba\u7387\u306e\u7d2f\u7a4d\u3068\u304b\u4e71\u6570\u5024\u304b\u3089\u771f\u306b\u6b32\u3057\u3044\u5024\u306b\u5909\u63db\u3059\u308b\u8fba\u308a\u3068\u304b\u30d1\u30c3\u3068\u898b\u4f55\u3057\u3066\u308b\u304b\u305c\u3093\u305c\u3093\u308f\u304b\u3089\u306a\u3044\u3067\u3059\u306d\uff0e<br \/>\n\u3053\u308c\u3092\u30d0\u30b7\u30c3\u3068\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u304cstd::discrete_distribution\u3067\u3059\uff0e<\/p>\n<p>*std::discrete_distribution\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046<\/p>\n<p>std::discrete_distribution\u306f\uff0c\u6b21\u306e\u3088\u3046\u306a\u5206\u5e03\u306e\u4e71\u6570\u3092\u751f\u6210\u3059\u308b\u5206\u5e03\u30a8\u30f3\u30b8\u30f3\u3067\u3059((\u53c2\u8003\uff1adiscrete_distribution &#8211; C++ Reference [http:\/\/www.cplusplus.com\/reference\/random\/discrete_distribution\/]))\uff0e<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=++p%28i%7Cw_%7B0%7D%2C+w_%7B1%7D%2C+%5Cldots%2C+w_%7Bn-2%7D%2C+w_%7Bn-1%7D%29+%3D+%5Cfrac%7Bw_%7Bi%7D%7D%7B%5Csum_%7Bk%7D%7Bw_%7Bk%7D%7D%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='  p(i|w_{0}, w_{1}, \\ldots, w_{n-2}, w_{n-1}) = \\frac{w_{i}}{\\sum_{k}{w_{k}}}  ' title='  p(i|w_{0}, w_{1}, \\ldots, w_{n-2}, w_{n-1}) = \\frac{w_{i}}{\\sum_{k}{w_{k}}}  ' class='latex' \/><\/p>\n<p>\u5f0f\u3092\u898b\u3066\u306e\u901a\u308a\uff0c<img src='https:\/\/s0.wp.com\/latex.php?latex=w_%7Bk%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='w_{k}' title='w_{k}' class='latex' \/>\u306f\u91cd\u307f\u306a\u306e\u3067\u78ba\u7387\u3067\u3042\u308b\u5fc5\u8981\u306f\u306a\u304f\u8981\u3059\u308b\u306b<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Csum_%7Bk%7D%7Bw_%7Bk%7D%7D%3D1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\sum_{k}{w_{k}}=1' title='\\sum_{k}{w_{k}}=1' class='latex' \/>\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\uff0e<\/p>\n<p>\u91cd\u307f<img src='https:\/\/s0.wp.com\/latex.php?latex=w_%7Bk%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='w_{k}' title='w_{k}' class='latex' \/>\u306f\u6574\u6570\u578b\u306e\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0e<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\uff0c\u304a\u307f\u304f\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u3092std::discrete_distribution\u3092\u4f7f\u3063\u3066\u66f8\u304d\u76f4\u3059\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<p><script src=\"https:\/\/gist.github.com\/sakanazensen\/4722583.js\"><\/script><\/p>\n<p>\u3053\u306e\u3068\u304a\u308a\u4e00\u6c17\u306b\u3059\u3063\u304d\u308a\u3057\u307e\u3057\u305f\u3057\uff0c\u4e71\u6570\u304c\u76f4\u63a5\u305d\u306e\u307e\u307e\u6b32\u3057\u3044\u5206\u5e03\u306b\u306a\u3063\u3066\u3066\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u8fba\u308a\u306f\u3068\u3066\u3082\u52a9\u304b\u308a\u307e\u3059\uff0e<\/p>\n<p>\u5206\u5e03\uff08\u91cd\u307f\uff09\u306e\u4e0e\u3048\u65b9\u306b\u306f\u3044\u304f\u3064\u304b\u3042\u3063\u3066\uff0c\u4e0a\u306b\u66f8\u3044\u305f\u3084\u308a\u65b9\u306b\u52a0\u3048\u3066\u4f8b\u3048\u3070<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nstd::discrete_distribution&lt;int&gt; dst = {1, 2, 3, 4};\r\n<\/pre>\n<p>\u3068\u3044\u3046\u66f8\u304d\u65b9\u306a\u3089\u91cd\u307f\u304c\u5b8c\u5168\u306b\u5b9a\u6570\u306a\u3089\u3055\u3089\u306b\u3059\u3063\u304d\u308a\u66f8\u3051\u307e\u3059\uff0e<\/p>\n<p>*std::piecewise_constant_distribution<\/p>\n<p>std::discrete_distribution\u306e\u5fdc\u7528\u7684\u306a\u3082\u306e\u3068\u3057\u3066std::piecewise_constant_distribution\u304c\u3042\u308a\u307e\u3059\uff0e<\/p>\n<p>\u3053\u308c\u306f\uff0c\u751f\u6210\u3059\u308b\u5024\u304c\u4e00\u5b9a\u533a\u9593\u5185\u3067\u4e00\u69d8\u5206\u5e03\u3059\u308b\u30a2\u30ca\u30ed\u30b0\u5024\uff08\u5b9f\u6570\u5024\uff09\u3068\u306a\u308a\uff0c\u305d\u306e\u533a\u9593\u306b\u51fa\u308b\u78ba\u7387\u3092\u91cd\u307f\u304c\u8868\u3059\u3082\u306e\u3067\u3059\uff0e<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nstd::vector&lt;double&gt; weights = {1, 2, 3};\r\nstd::vector&lt;double&gt; intervs = {1, 3, 5, 7};\r\nstd::piecewise_constant_distribution&lt;double&gt; dst2(intervs.begin(), intervs.end(), weights.begin());\r\n\r\nhoge = dst2(rng);\r\n<\/pre>\n<p>\u3053\u308c\u306f\u3053\u306e\u3088\u3046\u306a\u5206\u5e03\u3092\u8868\u3057\u307e\u3059\uff0e<\/p>\n<p><a href=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2013\/02\/20130206_piecewise_constatn_distribution.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2013\/02\/20130206_piecewise_constatn_distribution.png\" alt=\"20130206_piecewise_constatn_distribution\" width=\"500\" height=\"271\" class=\"aligncenter size-full wp-image-1592\" srcset=\"https:\/\/daily.belltail.jp\/wp-content\/uploads\/2013\/02\/20130206_piecewise_constatn_distribution.png 500w, https:\/\/daily.belltail.jp\/wp-content\/uploads\/2013\/02\/20130206_piecewise_constatn_distribution-300x162.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>\u306a\u306e\u3067\uff0c\u51fa\u529b\u3055\u308c\u308b\u5024\u306e\u4f8b\u306f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n6.70997 4.61671 6.45071 5.48144 2.43457 4.83174 4.04132 5.11937 5.8644 6.95352 5.88197 6.65031 5.02199 5.23308 5.01276 4.77485 5.18637 4.68551 6.4178 5.41693 4.99127 6.9197 1.41181 6.90801\r\n 4.17912 5.71808 4.0774 6.4235 1.54071 5.64048 5.99976 2.59595 6.92944 2.14426 3.69604 6.20845 1.93068 5.50954 1.09713 5.72115 5.13573 4.632 3.19731 2.65602 4.294 6.04969 1.48565 3.51774 \r\n5.01908 6.29042 6.92689 6.29382 3.81096 1.57533 3.48709 5.17622 6.5509 4.06304 1.39922 2.95447 6.50946 3.26181 3.63652 4.95465 3.34052 4.94181 6.81977 5.60787 6.03001 4.61147 5.21152 \r\n1.63783 3.93506 4.42989 6.63373 6.23655 3.54978 2.55816 4.95996 4.271 5.87388 3.72683 5.49374 6.2475 3.87505 4.31426 4.06358 6.26308 5.67714 4.27651 4.75098 3.82168 6.64226 4.93171 6.02316\r\n 2.29674 4.36154 6.48075 4.16516 6.66847\r\n<\/pre>\n<p>\u3068\u3044\u3046\u98a8\u306b\u306a\u308a\u307e\u3059\uff085\u4ee5\u4e0a7\u672a\u6e80\u306e\u5024\u304c\u4e00\u756a\u305f\u304f\u3055\u3093\u51fa\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\uff09<\/p>\n<p>\u304a\u3055\u304b\u306a\u3055\u3093\u7684\u306b\u306f\u4eca\u306e\u6bb5\u968e\u3067\u306f\u307e\u3060\u5177\u4f53\u7684\u306a\u7528\u9014\u3092\u601d\u3044\u3064\u304d\u307e\u305b\u3093\u304c\u4f55\u304b\u306b\u4f7f\u3048\u305d\u3046\u611f\u306f\u3042\u308a\u307e\u3059\uff01\uff57\u3000\u2190<\/p>\n<p>*std::piecewise_linear_distribution<\/p>\n<p>\u57fa\u672c\u7684\u306b\u306f\u4e0a\u3067\u8ff0\u3079\u305fstd::piecewise_constant_distribution\u3068\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059\uff0e<\/p>\n<p>constant\u304clinear\u306b\u306a\u3063\u305f\u3053\u3068\u304b\u3089\u60f3\u50cf\u304c\u3064\u304f\u304b\u3068\u601d\u3044\u307e\u3059\u304c\uff0c\u5404\u533a\u9593\u5185\u3067\u306e\u5206\u5e03\u304c\u4e21\u96a3\u306e\u533a\u9593\u306e\u51fa\u73fe\u78ba\u7387\u306b\u4f75\u305b\u3066\u30ea\u30cb\u30a2\u306b\u5909\u5316\u3059\u308b\u3088\u3046\u306a\u5206\u5e03\u3067\u3059\uff0e<\/p>\n<p>std::piecewise_constant_distribution\u306e<font color=\"red\">\u78ba\u7387\u5bc6\u5ea6\u95a2\u6570<\/font>\u306f\u968e\u6bb5\u72b6\u306e\u5f62\u306b\u306a\u308a\u307e\u3059\u304c\uff0cstd::piecewise_linear_distribution\u306e\u78ba\u7387\u5bc6\u5ea6\u95a2\u6570\u306f\u659c\u3081\u306e\u7dda\u5206\u3092\u3064\u306a\u304e\u3042\u308f\u305b\u305f\u3088\u3046\u306a\u5f62\u306b\u306a\u308b\u308f\u3051\u3067\u3059\uff0e<\/p>\n<p>\u3053\u308c\u306b\u3088\u3063\u3066\uff0c\u539f\u7406\u7684\u306b\u306f\u7121\u9650\u306e\u81ea\u7531\u5ea6\u306e\u30ce\u30f3\u30d1\u30e9\u30e1\u30c8\u30ea\u30c3\u30af\u5206\u5e03\u306a\u4e71\u6570\u3092\u751f\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u306d\uff0e<br \/>\n\u30ea\u30cb\u30a2\u3058\u3083\u306a\u304f\u3066\u4e8c\u6b21\u88dc\u9593\u3068\u304b\u3082\u3067\u304d\u308b\u306e\u304c\u3042\u308c\u3070\u3082\u3063\u3068\u3044\u3044\u304b\u3082\uff1f\uff57 \u3081\u3061\u3083\u304f\u3061\u3083\u96e3\u3057\u305d\u3046\u3060\u3051\u3069<\/p>\n<p>\uff08\u3061\u3087\u3063\u3068\u3053\u3053\u306e\u8aac\u660e\uff0c\u304a\u8336\u3092\u6fc1\u3057\u3066\u308b\u611f\u306f\u3093\u3071\u306a\u3044\u3059\u306d\u30fb\u30fb\u30fb\uff57\u3000\u2190<\/p>\n<p>*\u751f\u6210\u3055\u308c\u308b\u78ba\u7387\u3060\u3051\u3067\u306a\u304f\u5024\u81ea\u4f53\u3082\u30ab\u30b9\u30bf\u30e0\u3057\u305f\u3044<\/p>\n<p>\u305f\u3068\u3048\u3070\u304a\u307f\u304f\u3058\u306e\u5834\u5408std::discrete_distribution\u304c\u751f\u6210\u3059\u308b\u306e\u306f\u6587\u5b57\u5217\u914d\u5217\u306e\u6dfb\u5b57\u306a\u306e\u30670\u304b\u3089\u59cb\u307e\u308b\u6574\u6570\u3067\u5341\u5206\u3067\u3057\u305f\uff0e<\/p>\n<p>\u51fa\u3066\u304f\u308b\u5024\u30820\u304b\u3089\u59cb\u307e\u308b\u6574\u6570\u3060\u3051\u3067\u306a\u304f\uff0c\u4f8b\u3048\u3070100\u3068200\u3068500\u3092\u9069\u5f53\u306a\u78ba\u7387\u3067\u51fa\u3059\u3088\u3046\u306b\u3057\u305f\u3044\uff0c\u306a\u3069\u306e\u30ab\u30b9\u30bf\u30e0\u306f\u76f4\u63a5\u8a18\u8ff0\u3059\u308b\u624b\u6bb5\u306f\u306a\u304f\uff0c\u51fa\u529b\u3055\u308c\u308b\u5024\u306e\u914d\u5217\u3092\u4e8b\u524d\u306b\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u305d\u308c\u3092\u7d4c\u7531\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3067\u3057\u3087\u3046\uff0e<br \/>\n\uff08\u3080\u3057\u308d\u304a\u307f\u304f\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3084\u3063\u3066\u308b\u3053\u3068\u306f\u305d\u308c\u306b\u4ed6\u306a\u3089\u306a\u3044\u3067\u3059\u306d\uff09<\/p>\n<p>*\u307e\u3068\u3081<\/p>\n<p>\u4e71\u6570\u304c\u6b32\u3057\u3044\u5834\u5408\u3067\u3082\uff0c\u5e38\u306b\u4e00\u69d8\u4e71\u6570\u3084\u5404\u7a2e\u306e\u6709\u540d\u306a\u30d1\u30e9\u30e1\u30c8\u30ea\u30c3\u30af\u78ba\u7387\u5206\u5e03\u3067\u4e8b\u8db3\u308a\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u4f8b\u3092\u793a\u3057\uff0c\u305d\u308c\u3092std::discrete_distribution\u306e\u6a5f\u80fd\u3067\u83ef\u9e97\u306b\u89e3\u6c7a\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<p>std::piecewise_*_distribution\u306b\u3064\u3044\u3066\u3082\u3044\u3044\u4f8b\u3092\u8003\u3048\u305f\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u305d\u3053\u306f\u307e\u305f\u6c17\u304c\u5411\u3044\u305f\u3089\u3068\u3044\u3046\u3053\u3068\u3067\uff0e<\/p>\n<p>\u4e71\u6570\uff0c\u5927\u4e8b\u3067\u3059\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u3055\u304b\u306a\u304a\u3055\u304b\u306a\u3063\u3066\u8a00\u3063\u3066\u305f\u3089\u30ea\u30a2\u30eb\u306b\u304a\u9b5a\u597d\u304d\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3063\u3066\u8a71\u306f\u524d\u3082\u3057\u305f\u3068\u601d\u3046\u3093\u3067\u3059\u304c\uff0c\u305d\u306e\u305b\u3044\u3067\u30db\u30f3\u30c8\u306b\u9b5a\u304c\u98df\u3079\u305f\u3044\u4eca\u65e5\u3053\u306e\u3054\u308d\u3067\u3059\uff0e\u8abf\u7406\u6cd5\u3068\u3057\u3066\u306f\uff0c\u304a\u523a\u8eab\u306e\u6b21\u70b9\u304f\u3089\u3044\u3067\u713c\u304d\u9b5a\u3068\u9152\u84b8\u3057\u304c\u597d\u304d\u3067\u3059\uff0e\u304a\u523a\u8eab\u306f\u305d\u306e\u307e\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14,12],"class_list":["post-1563","post","type-post","status-publish","format-standard","hentry","category-1","tag-boost","tag-c"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1563"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/1563\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}