![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Splits data according to classes. Returns an array of structures.
Split_classes separates data according to the class of each instance. Instances are the rows of 'data'.
Definition in file data_split_classes.m.
Go to the source code of this file.
Functions | |
| function | data_split_classes (in data, in hierarchy) |
| function data_split_classes | ( | in | data, |
| in | hierarchy | ||
| ) |
| data | irdata object |
| hierarchy | classlabel levels to be taken into account |
pieces: array of irdata objects; map cell array of vectors containing the indexes of the rows in the original dataset that went to each element of piece.