1 %> @brief Maxima/minima detection
3 %> Finds several maxima/minima within several ranges specified by the @c map
property. The
new variables will contain the values of the x-axis positions (wavenumbers) of each minimum/maximum detected.
5 %> <h3>@c map example</h3>
7 %> o.map = [1670, 1620, 0; % Amide I
8 %> 1560, 1500, 0; % Amide II
9 %> 1468, 1435, 0; % Proteins
10 %> 1418, 1380, 0; % Proteins
11 %> 1260, 1215, 0; % Amide III
12 %> 1120, 1040, 0; % Various DNA/RNA
16 %> Uses
peak_landmarks.m to convert multiple peak locations into features
20 %> [wn11, wn12, flag_min1; wn21, wn22, flag_min2; ...]
26 o.classtitle = 'Maxima/minima Detection';
30 methods(Access=protected)
31 function data = do_use(o, data)
33 % Converts ranges of o.map (given in wavenumbers) to indexes
35 map_idx(:, 1:2) =
v_x2ind(o.map(:, 1:2), data.fea_x);
40 data.fea_x = 1:size(T, 2);
function v_x2ind(in v, in x)
Feature Construction (FCon) base class.
function peak_landmarks(in X, in map, in t_range)