1 %>@ingroup datasettools
3 %> @brief Splits dataset according to
class map.
5 %> @param data @c
irdata object
6 %> @param maps Cell of vectors containing
class indexes.
8 %> @return <em>[pieces]</em> or <em>[pieces, map]</em>. @c pieces: array of
irdata objects; @c map cell array of vectors containing the
9 %> indexes of the rows in the original dataset that went to each element of piece.
11 if ~exist('hierarchy', 'var')
12 hierarchy = []; % means maximum possible
20 out = data.split_map(obsmaps);
25 varargout = {out, obsmaps};
function data_split_classmap(in data, in maps)
function classmap2obsmap(in classmaps, in classes)