Help with Bootstrap functuon, bootfun variable
8 ビュー (過去 30 日間)
古いコメントを表示
I have a curve data which:
x= (1:2^16) and y is a 1x2^16 matrix.
I want to create 9 more "y" data, by using bootstrap technique, that based on the initial y.
bootstat = bootstrp(nboot,bootfun,d); I wanted to use that function but I don't know what to write for "bootfun".
0 件のコメント
採用された回答
Jonas
2021 年 5 月 1 日
編集済み: Jonas
2021 年 5 月 1 日
bootfun has to be empty using [ ]. then you just need the second output from bootfun [~,idx]=bootstrp(...) and idx contains n columns of index for n bootstrap sets, each column has the same number of entries as your original data. calling originalData(idx) will give you a bootstrap set in each column
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!