IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
log_gridsearch.m
Go to the documentation of this file.
1 %> @brief Log generated by a @ref gridsearch
2 classdef log_gridsearch < irlog
3  properties
4  %> Array of sovalues
5  sovaluess = sovalues.empty();
6 
7  % Other stuff??
8  end;
9 
10  methods
11  function o = log_gridsearch()
12  o.classtitle = 'Grid search';
13  o.moreactions = [o.moreactions, {'extract_sovaluess', 'extract_block'}];
14  o.flag_ui = 0;
15  end;
16  end;
17 
18  methods
19  %> Extracts one sovalues object for each move
20  %>
21  %> Move is when the search space is shifted without zooming the space, and
22  %> next iteration is when the space is zoomed.
23  function out = extract_sovaluess(o)
24  for i = 1:numel(o.sovaluess)
25  out{i} = o.sovaluess(i);
26  end;
27  end;
28 
29  %> Extracts best block from last sovaluess
30  function out = extract_block(o)
31  r = o.sovaluess(end);
32 
33  ch = r.chooser;
34  temp = ch.use(r.values);
35  out = r.values(temp{:}).mold;
36  end;
37  end;
38 end
Log generated by a gridsearch.
Definition: log_gridsearch.m:2
Base Block class.
Definition: block.m:2
Property flag_ui
(GUI setting) Whether to "publish" in blockmenu and datatool. Note that a class can be "published" wi...
Definition: irobj.m:60
Log base class.
Definition: irlog.m:5
Grid Search.
Definition: gridsearch.m:20