IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
data_select_inliers.m
Go to the documentation of this file.
1 %>@ingroup datasettools
2 %> @file
3 %> @brief Selects only the data rows whose class is >= 0
4 %>
5 %> @param data
6 function data = data_select_inliers(data)
7 b_out = data.classes < 0;
8 for i = 1:numel(data.rowfieldnames)
9  if ~isempty(data.(data.rowfieldnames{i}))
10  data.(data.rowfieldnames{i})(b_out, :) = [];
11  end;
12 end;
function data_select_inliers(in data)