Coin And Dice
Compute the estimated average number of coin tosses (or dice throws) to get a given sequence of Heads-and-Tails (or a sequence of intergers ranging from 1 to 6)
The inputs are:
- The Sequence (row vector)
- The Number of Monte-Carlo Simulations
The outputs are the estimated (Monte-Carlo) expectation of number of tosses/throws to get the input sequence, along with the standard deviation of the error (due to the randomness of the simulation)
Citation pour cette source
Rodolphe Sitter (2024). Coin And Dice (https://www.mathworks.com/matlabcentral/fileexchange/23448-coin-and-dice), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Design > Adaptive Filters >
Tags
Remerciements
Inspiré par : Kernel Smoothing Regression
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |