久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <bdo id='Fx3NT'></bdo><ul id='Fx3NT'></ul>
    <tfoot id='Fx3NT'></tfoot>
    1. <small id='Fx3NT'></small><noframes id='Fx3NT'>

    2. <legend id='Fx3NT'><style id='Fx3NT'><dir id='Fx3NT'><q id='Fx3NT'></q></dir></style></legend>
    3. <i id='Fx3NT'><tr id='Fx3NT'><dt id='Fx3NT'><q id='Fx3NT'><span id='Fx3NT'><b id='Fx3NT'><form id='Fx3NT'><ins id='Fx3NT'></ins><ul id='Fx3NT'></ul><sub id='Fx3NT'></sub></form><legend id='Fx3NT'></legend><bdo id='Fx3NT'><pre id='Fx3NT'><center id='Fx3NT'></center></pre></bdo></b><th id='Fx3NT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Fx3NT'><tfoot id='Fx3NT'></tfoot><dl id='Fx3NT'><fieldset id='Fx3NT'></fieldset></dl></div>

      在 C/C++ 中生成服從正態分布的隨機數

      Generate random numbers following a normal distribution in C/C++(在 C/C++ 中生成服從正態分布的隨機數)
        <bdo id='BtwnU'></bdo><ul id='BtwnU'></ul>

            <tfoot id='BtwnU'></tfoot>

          1. <i id='BtwnU'><tr id='BtwnU'><dt id='BtwnU'><q id='BtwnU'><span id='BtwnU'><b id='BtwnU'><form id='BtwnU'><ins id='BtwnU'></ins><ul id='BtwnU'></ul><sub id='BtwnU'></sub></form><legend id='BtwnU'></legend><bdo id='BtwnU'><pre id='BtwnU'><center id='BtwnU'></center></pre></bdo></b><th id='BtwnU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BtwnU'><tfoot id='BtwnU'></tfoot><dl id='BtwnU'><fieldset id='BtwnU'></fieldset></dl></div>
              <tbody id='BtwnU'></tbody>
            <legend id='BtwnU'><style id='BtwnU'><dir id='BtwnU'><q id='BtwnU'></q></dir></style></legend>

            <small id='BtwnU'></small><noframes id='BtwnU'>

                本文介紹了在 C/C++ 中生成服從正態分布的隨機數的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                如何在 C 或 C++ 中輕松生成服從正態分布的隨機數?

                How can I easily generate random numbers following a normal distribution in C or C++?

                我不想使用任何 Boost.

                I don't want any use of Boost.

                我知道 Knuth 詳細談到了這個問題,但我現在手頭沒有他的書.

                I know that Knuth talks about this at length but I don't have his books at hand right now.

                推薦答案

                生成的方法有很多來自常規 RNG 的高斯分布數.

                Box-Muller 變換 是常用的.它正確地產生具有正態分布的值.數學很容易.您生成兩個(均勻)隨機數,并通過對它們應用公式,您會得到兩個正態分布的隨機數.返回一個,并將另一個保存為下一個隨機數請求.

                The Box-Muller transform is commonly used. It correctly produces values with a normal distribution. The math is easy. You generate two (uniform) random numbers, and by applying an formula to them, you get two normally distributed random numbers. Return one, and save the other for the next request for a random number.

                這篇關于在 C/C++ 中生成服從正態分布的隨機數的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                read input files, fastest way possible?(讀取輸入文件,最快的方法?)
                The easiest way to read formatted input in C++?(在 C++ 中讀取格式化輸入的最簡單方法?)
                Reading from .txt file into two dimensional array in c++(從 .txt 文件讀取到 C++ 中的二維數組)
                How to simulate a key press in C++(如何在 C++ 中模擬按鍵按下)
                Why doesn#39;t getline(cin, var) after cin.ignore() read the first character of the string?(為什么在 cin.ignore() 之后沒有 getline(cin, var) 讀取字符串的第一個字符?)
                What is the cin analougus of scanf formatted input?(scanf 格式輸入的 cin 類比是什么?)

                <i id='E7JSk'><tr id='E7JSk'><dt id='E7JSk'><q id='E7JSk'><span id='E7JSk'><b id='E7JSk'><form id='E7JSk'><ins id='E7JSk'></ins><ul id='E7JSk'></ul><sub id='E7JSk'></sub></form><legend id='E7JSk'></legend><bdo id='E7JSk'><pre id='E7JSk'><center id='E7JSk'></center></pre></bdo></b><th id='E7JSk'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='E7JSk'><tfoot id='E7JSk'></tfoot><dl id='E7JSk'><fieldset id='E7JSk'></fieldset></dl></div>

                    <legend id='E7JSk'><style id='E7JSk'><dir id='E7JSk'><q id='E7JSk'></q></dir></style></legend>
                      <bdo id='E7JSk'></bdo><ul id='E7JSk'></ul>

                          <tbody id='E7JSk'></tbody>

                        1. <small id='E7JSk'></small><noframes id='E7JSk'>

                          <tfoot id='E7JSk'></tfoot>
                          主站蜘蛛池模板: 欧美亚洲视频在线观看 | 精品不卡 | 91精品国产日韩91久久久久久 | 国产精品亚洲精品 | 欧美www在线观看 | 欧美中文字幕一区二区三区亚洲 | 日韩黄a| 久久久久国产精品 | 国产九九九 | 精品国产乱码一区二区三区 | 欧美日韩大片 | 夜夜干夜夜操 | 精品日本中文字幕 | 日韩欧美精品一区 | 九色在线| 国产黄色免费网站 | 欧美专区在线 | 中文字幕亚洲视频 | 国产精品久久久久久福利一牛影视 | 中文字幕1区 | 亚洲女人天堂成人av在线 | 欧美高清成人 | 精品国产一区二区国模嫣然 | 精品一级电影 | www.成人久久| 亚洲国产成人精品女人久久久 | 男人亚洲天堂 | 中文字幕在线观看第一页 | 福利视频1000 | 97国产精品视频人人做人人爱 | 国产精品免费观看 | 午夜影院在线免费观看视频 | 91精品国产乱码久久久久久久久 | 国产精品免费一区二区三区 | chinese中国真实乱对白 | 久久33 | av网站免费在线观看 | 超碰人人人人 | 欧美一级黄色网 | 国产久| 97精品超碰一区二区三区 |