Help with Bootstrap functuon, bootfun variable

10 vues (au cours des 30 derniers jours)
Mehmet Can MERIC
Mehmet Can MERIC le 30 Avr 2021
Modifié(e) : Jonas le 1 Mai 2021
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".

Réponse acceptée

Jonas
Jonas le 1 Mai 2021
Modifié(e) : Jonas le 1 Mai 2021
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 commentaires
Mehmet Can MERIC
Mehmet Can MERIC le 1 Mai 2021
Thanks a lot!
Jonas
Jonas le 1 Mai 2021
good luck ;)

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by