3 %>@brief Converts curves to their peaks/troughs locations
5 %> @param X data matrix with curves
as rows
6 %> @param map <code>[idxmin, idxmax, flag_min; ...]</code>
7 %> @param t_range
for the
final conversion of output values to the proper scale.
13 if ~exist(
't_range',
'var')
18 no_peaks = size(map, 1);
19 T = zeros(no, no_peaks);
24 idxs = map(j, 1):map(j, 2);
28 [val, idx_peak] = min(v(idxs));
30 [val, idx_peak] = max(v(idxs));
32 idx_peak = idx_peak+idxs(1)-1;
41 T = (T-1)*(tf-ti)/(no_t-1)+ti; % Normalizes warping information to the original number of features
function peak_landmarks(in X, in map, in t_range)
Analysis Session (AS) base class.