IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_report_testtable.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref report_testtable
4 %>
5 %> <b>Index of feature to test</b> - see report_testtable::idx_fea
6 %> <b>Feature Selection Grader (FSG) object</b> - see report_testtable::fsg
7 %>
8 %> @sa report_testtable
9 
10 %>@cond
11 function varargout = uip_report_testtable(varargin)
12 % Last Modified by GUIDE v2.5 18-Oct-2012 17:50:34
13 
14 % Begin initialization code - DO NOT EDIT
15 gui_Singleton = 1;
16 gui_State = struct('gui_Name', mfilename, ...
17  'gui_Singleton', gui_Singleton, ...
18  'gui_OpeningFcn', @uip_report_testtable_OpeningFcn, ...
19  'gui_OutputFcn', @uip_report_testtable_OutputFcn, ...
20  'gui_LayoutFcn', [] , ...
21  'gui_Callback', []);
22 if nargin && ischar(varargin{1})
23  gui_State.gui_Callback = str2func(varargin{1});
24 end
25 
26 if nargout
27  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
28 else
29  gui_mainfcn(gui_State, varargin{:});
30 end
31 % End initialization code - DO NOT EDIT
32 
33 
34 % --- Executes just before uip_report_testtable is made visible.
35 function uip_report_testtable_OpeningFcn(hObject, eventdata, handles, varargin)
36 handles.output.flag_ok = 0;
37 guidata(hObject, handles);
38 gui_set_position(hObject);
39 refresh(handles);
40 
41 function varargout = uip_report_testtable_OutputFcn(hObject, eventdata, handles)
42 try
43  uiwait(handles.figure1);
44  handles = guidata(hObject);
45  varargout{1} = handles.output;
46  delete(gcf);
47 catch
48  output.flag_ok = 0;
49  output.params = {};
50  varargout{1} = output;
51 end;
52 
53 %############################################
54 
55 %#########
56 function refresh(handles)
57 listbox_load_from_workspace('fsg', handles.popupmenu_fsg, 1);
58 fsg = def_fsg_testtable();
59 set(handles.text_fsg, 'String', sprintf('Feature subsets grader (defaults to a %s)', fsg.classtitle));
60 
61 %############################################
62 
63 
64 % --- Executes on button press in pushbuttonOK.
65 function pushbuttonOK_Callback(hObject, eventdata, handles)
66 try
67  sfsg = listbox_get_selected_1stname(handles.popupmenu_fsg);
68  if isempty(sfsg)
69  sfsg = 'fsg_test_t';
70  end;
71 
72  handles.output.params = {...
73  'idx_fea', mat2str(eval(get(handles.edit_idx_fea, 'String'))), ...
74  'fsg', sfsg, ...
75  };
76  handles.output.flag_ok = 1;
77  guidata(hObject, handles);
78  uiresume();
79 catch ME
80  irerrordlg(ME.message, 'Cannot continue');
81 
82 end;
83 
84 function edit_idx_fea_Callback(hObject, eventdata, handles)
85 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
86 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
87  set(hObject,'BackgroundColor','white');
88 end
89 function popupmenu_fsg_Callback(hObject, eventdata, handles)
90 function popupmenu_fsg_CreateFcn(hObject, eventdata, handles)
91 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
92  set(hObject,'BackgroundColor','white');
93 end
94 %> @endcond
Feature subset grader - t-test.
Definition: fsg_test_t.m:3
function def_fsg_testtable(in out)
function listbox_get_selected_1stname(in h_listbox)
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
function gui_set_position(in hObject)
FSG - Feature Subset Grader.
Definition: fsg.m:6
function irerrordlg(in errorstring, in dlgname)