IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_decider.m
Go to the documentation of this file.
1 %>@ingroup guigroup
2 %>@file
3 %>@brief Parameters Window for @ref decider
4 %>
5 %>@image html Screenshot-Decider.png
6 %>
7 %> <b>Minimum maximum posterior probability threshold<b> - a number between 0 and 1. See decider::decisionthreshold
8 %>
9 %> @sa decider
10 
11 %>@cond
12 function result = uip_decider(o, data)
13 result.flag_ok = 0;
14 while 1
15  p = inputdlg('Minimum maximum posterior probability threshold [0, 1]:', 'Decider', 1, {'0'});
16  if ~isempty(p)
17  decisionthreshold = eval(p{1});
18  if decisionthreshold < 0 || decisionthreshold > 1
19  irerrordlg('Between 0 and 1', 'Please try again, mate');
20  else
21  decisionthreshold = num2str(decisionthreshold);
22  result.params = {'decisionthreshold', decisionthreshold};
23  result.flag_ok = 1;
24  break;
25  end;
26  else
27  break;
28  end;
29 end;
30 %>@endcond
Property decisionthreshold
=0. Minimum maximum probability. If not reached, assigned class will be -1, which means "refuse-to-de...
Definition: decider.m:16
Block that resolves estimato posterior probabilities into classes.
Definition: decider.m:10
function irerrordlg(in errorstring, in dlgname)