IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_fcon_lda.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref fcon_lda
4 %>
5 %> @image html Screenshot-uip_fcon_lda.png
6 %>
7 %> <b>Penalty coefficients</b> - see fcon_lda::penalty
8 %>
9 %>
10 %> @sa fcon_lda
11 
12 %>@cond
13 function varargout = uip_fcon_lda(varargin)
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_fcon_lda_OpeningFcn, ...
19  'gui_OutputFcn', @uip_fcon_lda_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_fcon_lda is made visible.
35 function uip_fcon_lda_OpeningFcn(hObject, eventdata, handles, varargin)
36 handles.output.flag_ok = 0;
37 guidata(hObject, handles);
38 gui_set_position(hObject);
39 
40 
41 % --- Outputs from this function are returned to the command clae.
42 function varargout = uip_fcon_lda_OutputFcn(hObject, eventdata, handles)
43 try
44  uiwait(handles.figure1);
45  handles = guidata(hObject);
46  varargout{1} = handles.output;
47  delete(gcf);
48 catch
49  output.flag_ok = 0;
50  varargout{1} = output;
51 end;
52 
53 
54 
55 
56 % --- Executes on button press in pushbuttonOk.
57 function pushbuttonOk_Callback(hObject, eventdata, handles)
58 handles.output.params = {...
59 'penalty', mat2str(eval(get(handles.editP, 'String'))), ...
60 'max_loadings', mat2str(eval(get(handles.edit_max_loadings, 'String'))) ...
61 };
62 handles.output.flag_ok = 1;
63 guidata(hObject, handles);
64 uiresume();
65 
66 
67 
68 function editP_Callback(hObject, eventdata, handles)
69 % --- Executes during object creation, after setting all properties.
70 function editP_CreateFcn(hObject, eventdata, handles)
71 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
72  set(hObject,'BackgroundColor','white');
73 end
74 
75 
76 
77 function edit_max_loadings_Callback(hObject, eventdata, handles)
78 % --- Executes during object creation, after setting all properties.
79 function edit_max_loadings_CreateFcn(hObject, eventdata, handles)
80 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
81  set(hObject,'BackgroundColor','white');
82 end
83 %>@endcond
Fisher's Linear Discriminant Analysis.
Definition: fcon_lda.m:3
function gui_set_position(in hObject)
Property penalty
Penalty coefficients: [0-th derivative penalty, 1st derivative penalty, 2nd ..., ...].
Definition: fcon_lda.m:13