Skip to content

Commit d83b7cc

Browse files
committed
fixed bug in bootstrp
fixed bug in `bootstrp` that didn't reshape output correctly when applying vectorized evaluation of bootfun on the data
1 parent 53cef0f commit d83b7cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/bootstrp.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
% vs. Smoothing; Proceedings of the Section on Statistics & the
107107
% Environment. Alexandria, VA: American Statistical Association.
108108
%
109-
% bootstrp (version 2024.05.15)
109+
% bootstrp (version 2024.05.24)
110110
% Author: Andrew Charles Penn
111111
% https://www.researchgate.net/profile/Andrew_Penn/
112112
%
@@ -435,7 +435,7 @@
435435
if (vectorized)
436436
% Fast: Vectorized evaluation of bootfun on the resamples
437437
XR = arrayfun (@(v) x{v}(bootsam{v}), 1 : nvar, 'UniformOutput', false);
438-
bootstat = num2cell (bootfun (XR{:}), 2);
438+
bootstat = num2cell (bootfun (XR{:}), 1);
439439
else
440440
% Slow: Looped evaluation of bootfun on the resamples
441441
bootstat = cellfun (@(i) booteval (x, i, bootfun, n, nvar), ...

0 commit comments

Comments
 (0)