Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use C++ to discretize the numerical distribution

Shulou Source: shulou.com Published: 2022-06-03 05:43:09 10月03日 Update

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

Tags: Discrete numeric clockwise learning generation output history p. number time more generator seed help utility next vector engine index article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB Shulou Technology OPPO Reno Microsoft