IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
fcon_mea_norm.m
Go to the documentation of this file.
1 %> @brief Norm
2 %>
3 %> @sa uip_fcon_mea_norm.m
5  properties
6  %> Whichever works with the \c norm() function
7  type = 2;
8  end;
9 
10  methods
11  function o = fcon_mea_norm(o)
12  o.classtitle = 'Norm';
13  end;
14  end;
15 
16  methods(Access=protected)
17  function data = do_use(o, data)
18  data.fea_x = 1;
19  X = zeros(data.no, 1);
20  for i = 1:data.no
21  X(i, 1) = norm(data.X(i, :), o.type);
22  end;
23  data.X = X;
24  end;
25  end;
26 end
Measure: calculates one scalar per dataset row.
Definition: fcon_mea.m:2