Sampling from a discrete probability distribution in C++

前端 未结 5 583
故里飘歌
故里飘歌 2021-01-06 04:47

I am new to C++ and extremely surprised by the lack of accessible, common probability manipulation tools (i.e. the lack of things in Boost and the standard library). I\'ve d

5条回答
  •  天命终不由人
    2021-01-06 05:32

    As mentioned, you'll want to look at boost/math/distributions and friends to meet your needs.

    Here's a very good, detailed tutorial on getting these working for you in Boost. You may also want to throw your weight behind stan as well, which looks quite promising within this space.

提交回复
热议问题