IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_fcon_pls.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref fcon_pls
4 %>
5 %>@image html Screenshot-uip_fcon_pls.png
6 %>
7 %> <b>Number of factors</b> - see fcon_pls::no_factors
8 %>
9 %> @sa fcon_pls
10 
11 %>@cond
12 function varargout = uip_fcon_pls(varargin)
13 % Begin initialization code - DO NOT EDIT
14 gui_Singleton = 1;
15 gui_State = struct('gui_Name', mfilename, ...
16  'gui_Singleton', gui_Singleton, ...
17  'gui_OpeningFcn', @uip_fcon_pls_OpeningFcn, ...
18  'gui_OutputFcn', @uip_fcon_pls_OutputFcn, ...
19  'gui_LayoutFcn', [] , ...
20  'gui_Callback', []);
21 if nargin && ischar(varargin{1})
22  gui_State.gui_Callback = str2func(varargin{1});
23 end
24 
25 if nargout
26  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
27 else
28  gui_mainfcn(gui_State, varargin{:});
29 end
30 % End initialization code - DO NOT EDIT
31 
32 
33 % --- Executes just before uip_fcon_pls is made visible.
34 function uip_fcon_pls_OpeningFcn(hObject, eventdata, handles, varargin)
35 handles.output.flag_ok = 0;
36 guidata(hObject, handles);
37 gui_set_position(hObject);
38 
39 
40 % --- Outputs from this function are returned to the command clae.
41 function varargout = uip_fcon_pls_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  varargout{1} = output;
50 end;
51 
52 
53 
54 function editReg_Callback(hObject, eventdata, handles)
55 % hObject handle to editReg (see GCBO)
56 % eventdata reserved - to be defined in a future version of MATLAB
57 % handles structure with handles and user data (see GUIDATA)
58 
59 % Hints: get(hObject,'String') returns contents of editReg as text
60 % str2double(get(hObject,'String')) returns contents of editReg as a double
61 
62 
63 % --- Executes during object creation, after setting all properties.
64 function editReg_CreateFcn(hObject, eventdata, handles)
65 % hObject handle to editReg (see GCBO)
66 % eventdata reserved - to be defined in a future version of MATLAB
67 % handles empty - handles not created until after all CreateFcns called
68 
69 % Hint: edit controls usually have a white background on Windows.
70 % See ISPC and COMPUTER.
71 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
72  set(hObject,'BackgroundColor','white');
73 end
74 
75 
76 
77 % --- Executes on button press in pushbuttonOk.
78 function pushbuttonOk_Callback(hObject, eventdata, handles)
79 % hObject handle to pushbuttonOk (see GCBO)
80 % eventdata reserved - to be defined in a future version of MATLAB
81 % handles structure with handles and user data (see GUIDATA)
82 
83 handles.output.params = {...
84 'no_factors', int2str(eval(get(handles.editNofactors, 'String'))) ...
85 };
86 handles.output.flag_ok = 1;
87 guidata(hObject, handles);
88 uiresume();
89 
90 
91 % --- Executes on selection change in popupmenuType.
92 function popupmenuType_Callback(hObject, eventdata, handles)
93 % hObject handle to popupmenuType (see GCBO)
94 % eventdata reserved - to be defined in a future version of MATLAB
95 % handles structure with handles and user data (see GUIDATA)
96 
97 % Hints: contents = get(hObject,'String') returns popupmenuType contents as cell array
98 % contents{get(hObject,'Value')} returns selected item from popupmenuType
99 
100 
101 % --- Executes during object creation, after setting all properties.
102 function popupmenuType_CreateFcn(hObject, eventdata, handles)
103 % hObject handle to popupmenuType (see GCBO)
104 % eventdata reserved - to be defined in a future version of MATLAB
105 % handles empty - handles not created until after all CreateFcns called
106 
107 % Hint: popupmenu controls usually have a white background on Windows.
108 % See ISPC and COMPUTER.
109 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
110  set(hObject,'BackgroundColor','white');
111 end
112 
113 
114 function editNofactors_Callback(hObject, eventdata, handles)
115 % hObject handle to editNofactors (see GCBO)
116 % eventdata reserved - to be defined in a future version of MATLAB
117 % handles structure with handles and user data (see GUIDATA)
118 
119 % Hints: get(hObject,'String') returns contents of editNofactors as text
120 % str2double(get(hObject,'String')) returns contents of editNofactors as a double
121 
122 
123 % --- Executes during object creation, after setting all properties.
124 function editNofactors_CreateFcn(hObject, eventdata, handles)
125 % hObject handle to editNofactors (see GCBO)
126 % eventdata reserved - to be defined in a future version of MATLAB
127 % handles empty - handles not created until after all CreateFcns called
128 
129 % Hint: edit controls usually have a white background on Windows.
130 % See ISPC and COMPUTER.
131 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
132  set(hObject,'BackgroundColor','white');
133 end
134 
135 
136 % --- Executes on button press in checkboxFlagRotate.
137 function checkboxFlagRotate_Callback(hObject, eventdata, handles)
138 %>@endcond
Property no_factors
Number of factors to feature in the transformed dataset (default: 10).
Definition: fcon_pls.m:14
function gui_set_position(in hObject)
Partial Least Squares Transformation aka PLSDA.
Definition: fcon_pls.m:8
Analysis Session (AS) base class.
Definition: as.m:6