Description Usage Arguments Value Examples
Provide an estimation of the value of pi using simple probabilities. The internal procedure uses C++ code.
1 | estimate_pi2(B = 5000, seed = 10)
|
B |
the number of points on which the estimation of pi is produced. |
seed |
the seed to be used for the random generation used in the procedure |
A list
of the 'pi' class made of the estimated value of pi and the points on which this estimation is based. In particular:
The estimated value of pi
A data frame with the points in the unit square on which the estimation is based and a dummy indicating whether the particular point is inside the unit circle or not.
1 | estimate_pi(B=5000, seed=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.