1 %> @brief Shuffles rows keeping spectra from the same group together or not
4 %> whether to keep spectra from the same group together or not
10 o.classtitle = 'Shuffle';
11 o.flag_params = 0; % I won't publish flag_group because will always want them together anyway
15 methods(Access=protected)
16 function data = do_use(o, data)
18 p = randperm(data.no);
19 data = data.map_rows(p);
21 p = randperm(data.no_groups);
22 data = data.map_rows(data.get_obsidxs_from_groupidxs(p));
Shuffles rows keeping spectra from the same group together or not.
Base class for blocks that change a dataset row order.