How to use C++ to discretize the numerical distribution
This article mainly introduces "how to use C++ to discretize the numerical distribution". In the daily operation, I believe many people have doubts about how to use C++ to discretize the numerical distribution. The editor consulted all kinds of data and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "how to use C++ to discretize the numerical distribution". Next, please follow the editor to study!
# include
# include
# include
Whole Lord ()
{
Discrete distribution d ({40,10,10,40})
Vector p = d. Probability ()
To (move n: P)
Output