Sampling from a discrete probability distribution in C++

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

    Perhaps I'm misunderstanding your intention, but it seems to me what you want is simply std::discrete_distribution.

提交回复
热议问题