Sampling from a discrete probability distribution in C++

前端 未结 5 547
故里飘歌
故里飘歌 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:19

    (Moved from comment.)

    Did you look at Boost.Math.StatisticalDistributions? Specifically, its Discrete Probability Distributions?

    Boost is not a library, it's a collection of libraries, so it can sometimes be difficult to find exactly what you're looking for – but that doesn't mean it isn't there. ;-]

提交回复
热议问题