1 %>@ingroup datasettools
3 %> @brief Splits data
using SGS. Returns an array of structures.
5 %> Utilizes the maps issued by the @ref
sgs object as row maps to split the dataset
7 %> @param data @ref
irdata object
8 %> @param
sgs @ref
sgs object
10 %> @return <em>[pieces]</em> or <em>[pieces, map]</em>. @c pieces: array of
irdata objects; @c map cell array of vectors containing the
11 %> indexes of the rows in the original dataset that went to each element of piece.
14 obsmaps =
sgs.get_obsidxs(data);
16 out = data.split_map(obsmaps);
21 varargout = {out, obsmaps};
Base Sub-dataset Generation Specification (SGS) class.
Analysis Session (AS) base class.
function data_split_sgs(in data, in sgs)