Coin And Dice

Simulate the average number of tosses of coin/throws of dice to get a given sequence.
ダウンロード: 1.4K
更新 2009/3/27

ライセンスの表示

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)

引用

Rodolphe Sitter (2024). Coin And Dice (https://www.mathworks.com/matlabcentral/fileexchange/23448-coin-and-dice), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersAdaptive Filters についてさらに検索
謝辞

ヒントを得たファイル: Kernel Smoothing Regression

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0