bootstat = bootstrp(nboot, bootfun, d)
bootstat = bootstrp(nboot, bootfun, d1, ..., dN)
[bootstat, bootsam] = bootstrp(...)
[bootstat, bootsam] = bootstrp(nboot, [], d)
| Paramètre | Description |
|---|---|
| nboot | entier positif indiquant le nombre d'echantillons bootstrap. |
| bootfun | fonction appliquee a chaque echantillon bootstrap. Utilisez une valeur vide pour retourner seulement les indices. |
| d | vecteur ou matrice numerique ou logique. Les lignes sont tirees avec remise. |
| Paramètre | Description |
|---|---|
| bootstat | statistiques bootstrap, une ligne par echantillon. |
| bootsam | indices tires, une colonne par echantillon bootstrap. |
bootstrp tire des echantillons bootstrap avec le generateur aleatoire de Nelson et applique une fonction statistique a chaque echantillon.
rng('default');
[bootstat, bootsam] = bootstrp(20, @mean, (1:10)')