IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_pre_bc_asls.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref pre_bc_asls
4 %>
5 %>@image html Screenshot-uip_pre_bc_asls.png
6 %>
7 %> <b>p</b> - see pre_bc_asls::p
8 %>
9 %> <b>lambda</b> - see pre_bc_asls::lambda
10 %>
11 %> <b>Number of iterations</b> - see pre_bc_asls::no_iterations
12 %>
13 %> @sa pre_bc_asls
14 
15 %>@cond
16 function varargout = blockuip_fsel_fixed(varargin)
17 % Begin initialization code - DO NOT EDIT
18 gui_Singleton = 1;
19 gui_State = struct('gui_Name', mfilename, ...
20  'gui_Singleton', gui_Singleton, ...
21  'gui_OpeningFcn', @blockuip_fsel_fixed_OpeningFcn, ...
22  'gui_OutputFcn', @blockuip_fsel_fixed_OutputFcn, ...
23  'gui_LayoutFcn', [] , ...
24  'gui_Callback', []);
25 if nargin && ischar(varargin{1})
26  gui_State.gui_Callback = str2func(varargin{1});
27 end
28 
29 if nargout
30  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
31 else
32  gui_mainfcn(gui_State, varargin{:});
33 end
34 % End initialization code - DO NOT EDIT
35 
36 
37 % --- Executes just before blockuip_fsel_fixed is made visible.
38 function blockuip_fsel_fixed_OpeningFcn(hObject, eventdata, handles, varargin)
39 handles.output.flag_ok = 0;
40 guidata(hObject, handles);
41 gui_set_position(hObject);
42 
43 
44 % --- Outputs from this function are returned to the command clae.
45 function varargout = blockuip_fsel_fixed_OutputFcn(hObject, eventdata, handles)
46 try
47  uiwait(handles.figure1);
48  handles = guidata(hObject);
49  varargout{1} = handles.output;
50  delete(gcf);
51 catch
52  output.flag_ok = 0;
53  varargout{1} = output;
54 end;
55 
56 
57 
58 function editReg_Callback(hObject, eventdata, handles)
59 % hObject handle to editReg (see GCBO)
60 % eventdata reserved - to be defined in a future version of MATLAB
61 % handles structure with handles and user data (see GUIDATA)
62 
63 % Hints: get(hObject,'String') returns contents of editReg as text
64 % str2double(get(hObject,'String')) returns contents of editReg as a double
65 
66 
67 % --- Executes during object creation, after setting all properties.
68 function editReg_CreateFcn(hObject, eventdata, handles)
69 % hObject handle to editReg (see GCBO)
70 % eventdata reserved - to be defined in a future version of MATLAB
71 % handles empty - handles not created until after all CreateFcns called
72 
73 % Hint: edit controls usually have a white background on Windows.
74 % See ISPC and COMPUTER.
75 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
76  set(hObject,'BackgroundColor','white');
77 end
78 
79 
80 
81 % --- Executes on button press in pushbuttonOk.
82 function pushbuttonOk_Callback(hObject, eventdata, handles)
83 % hObject handle to pushbuttonOk (see GCBO)
84 % eventdata reserved - to be defined in a future version of MATLAB
85 % handles structure with handles and user data (see GUIDATA)
86 
87 
88 handles.output.params = {...
89 'p', num2str(eval(get(handles.edit_p, 'String'))), ...
90 'lambda', num2str(eval(get(handles.edit_lambda, 'String'))), ...
91 'no_iterations', int2str(eval(get(handles.edit_no_iterations, 'String'))) ...
92 };
93 handles.output.flag_ok = 1;
94 guidata(hObject, handles);
95 uiresume();
96 
97 
98 
99 function editKnots_Callback(hObject, eventdata, handles)
100 % hObject handle to editKnots (see GCBO)
101 % eventdata reserved - to be defined in a future version of MATLAB
102 % handles structure with handles and user data (see GUIDATA)
103 
104 % Hints: get(hObject,'String') returns contents of editKnots as text
105 % str2double(get(hObject,'String')) returns contents of editKnots as a double
106 
107 
108 % --- Executes during object creation, after setting all properties.
109 function editKnots_CreateFcn(hObject, eventdata, handles)
110 % hObject handle to editKnots (see GCBO)
111 % eventdata reserved - to be defined in a future version of MATLAB
112 % handles empty - handles not created until after all CreateFcns called
113 
114 % Hint: edit controls usually have a white background on Windows.
115 % See ISPC and COMPUTER.
116 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
117  set(hObject,'BackgroundColor','white');
118 end
119 
120 
121 
122 function editHelp_Callback(hObject, eventdata, handles)
123 % hObject handle to editHelp (see GCBO)
124 % eventdata reserved - to be defined in a future version of MATLAB
125 % handles structure with handles and user data (see GUIDATA)
126 
127 % Hints: get(hObject,'String') returns contents of editHelp as text
128 % str2double(get(hObject,'String')) returns contents of editHelp as a double
129 
130 
131 % --- Executes during object creation, after setting all properties.
132 function editHelp_CreateFcn(hObject, eventdata, handles)
133 % hObject handle to editHelp (see GCBO)
134 % eventdata reserved - to be defined in a future version of MATLAB
135 % handles empty - handles not created until after all CreateFcns called
136 
137 % Hint: edit controls usually have a white background on Windows.
138 % See ISPC and COMPUTER.
139 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
140  set(hObject,'BackgroundColor','white');
141 end
142 
143 
144 
145 function edit_p_Callback(hObject, eventdata, handles)
146 % hObject handle to edit_p (see GCBO)
147 % eventdata reserved - to be defined in a future version of MATLAB
148 % handles structure with handles and user data (see GUIDATA)
149 
150 % Hints: get(hObject,'String') returns contents of edit_p as text
151 % str2double(get(hObject,'String')) returns contents of edit_p as a double
152 
153 
154 % --- Executes during object creation, after setting all properties.
155 function edit_p_CreateFcn(hObject, eventdata, handles)
156 % hObject handle to edit_p (see GCBO)
157 % eventdata reserved - to be defined in a future version of MATLAB
158 % handles empty - handles not created until after all CreateFcns called
159 
160 % Hint: edit controls usually have a white background on Windows.
161 % See ISPC and COMPUTER.
162 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
163  set(hObject,'BackgroundColor','white');
164 end
165 
166 
167 
168 function edit_lambda_Callback(hObject, eventdata, handles)
169 % hObject handle to edit_lambda (see GCBO)
170 % eventdata reserved - to be defined in a future version of MATLAB
171 % handles structure with handles and user data (see GUIDATA)
172 
173 % Hints: get(hObject,'String') returns contents of edit_lambda as text
174 % str2double(get(hObject,'String')) returns contents of edit_lambda as a double
175 
176 
177 % --- Executes during object creation, after setting all properties.
178 function edit_lambda_CreateFcn(hObject, eventdata, handles)
179 % hObject handle to edit_lambda (see GCBO)
180 % eventdata reserved - to be defined in a future version of MATLAB
181 % handles empty - handles not created until after all CreateFcns called
182 
183 % Hint: edit controls usually have a white background on Windows.
184 % See ISPC and COMPUTER.
185 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
186  set(hObject,'BackgroundColor','white');
187 end
188 
189 
190 
191 function edit_no_iterations_Callback(hObject, eventdata, handles)
192 % hObject handle to edit_no_iterations (see GCBO)
193 % eventdata reserved - to be defined in a future version of MATLAB
194 % handles structure with handles and user data (see GUIDATA)
195 
196 % Hints: get(hObject,'String') returns contents of edit_no_iterations as text
197 % str2double(get(hObject,'String')) returns contents of edit_no_iterations as a double
198 
199 
200 % --- Executes during object creation, after setting all properties.
201 function edit_no_iterations_CreateFcn(hObject, eventdata, handles)
202 % hObject handle to edit_no_iterations (see GCBO)
203 % eventdata reserved - to be defined in a future version of MATLAB
204 % handles empty - handles not created until after all CreateFcns called
205 
206 % Hint: edit controls usually have a white background on Windows.
207 % See ISPC and COMPUTER.
208 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
209  set(hObject,'BackgroundColor','white');
210 end
211 %>@endcond
Property lambda
=1e5. Recommended: 10^2 <= lambda <= 10^9
Definition: pre_bc_asls.m:19
Property no_iterations
=10
Definition: pre_bc_asls.m:22
Asymmetric Least-Squares Baseline Correction.
Definition: pre_bc_asls.m:10
function gui_set_position(in hObject)
Analysis Session (AS) base class.
Definition: as.m:6
Property p
=0.001. Recommended: 0.001 <= p <= 0.1
Definition: pre_bc_asls.m:16