IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
fcon_mcr.m
Go to the documentation of this file.
1 %> @brief Multivariate Curve Resolution
2 %>
3 %> Uses the Toolbox from the University of Barcelona (http://www.mcrals.info)
4 %>
5 %> The use() method calls an <b>interative</b> function from that toolbox. This <a href="mcr.pdf">configuration</a> was used to obtain the results published in [2].
6 %>
7 %> <h3>References</h3>
8 %>
9 %> [1] J. Jaumot, R. Gargallo, a Dejuan, and R. Tauler, “A graphical user-friendly interface for MCR-ALS: a new tool for multivariate curve
10 %>resolution in MATLAB,” Chemometr. Intell. Lab., vol. 76, no. 1, pp. 101-110, Mar. 2005.
11 %>
12 %> [2] I. I. Patel et al., “High contrast images of uterine tissue derived using Raman microspectroscopy with the empty modelling approach of
13 %> multivariate curve resolution-alternating least squares,” Analyst, no. 23, pp. 4950-4959, Dec. 2011.
14 %>
15 %> @sa uip_fcon_mcr.m
17  properties
18  flag_rotate_factors = 1;
19  no_factors = 10;
20  end;
21 
22  methods
23  function o = fcon_mcr()
24  o.classtitle = 'Multivariate Curve Resolution';
25  o.short = 'MCR';
26  o.flag_trainable = 0;
27  end;
28  end;
29 
30  methods(Access=protected)
31 
32  function out = do_use(o, data)
33 
34  % Uses PCA for guess of initial "spectra", but not recommended.
35  opca = fcon_pca();
36  opca = opca.setbatch({'no_factors', opca.no_factors, ...
37  'flag_rotate_factors', 0});
38  opca = opca.train(data);
39 
40  nfact = size(opca.L, 2);
41  [copt,sopt,sdopt,ropt,areaopt,rtopt]=als(data.X, abs(opca.L'), 1, 50, 0.0001, ones(1, nfact), 0, 0, [], []);
42 
43  o.L = adjust_unitnorm(sopt');
44 
45  out = data;
46  out.X = copt;
47  out.fea_x = 1:size(copt, 2);
48  end;
49  end;
50 end
Principal Component Analysis.
Definition: fcon_pca.m:4
Feature Construction - Linear Transformations base class.
Definition: fcon_linear.m:2
function setbatch(in o, in params)
Sets several properties of an object at once.
Multivariate Curve Resolution.
Definition: fcon_mcr.m:16
Property classtitle
Class Title. Should have a descriptive name, as short as possible.
Definition: irobj.m:50