IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
get_negative_meaning.m
Go to the documentation of this file.
1 %>@ingroup idata
2 %>@file
3 %> There are class code lower than zero with special meaning:
4 %> <table>
5 % <tr><td><code>>=0</code></td><td>Existing class; refers to element within @ref classlabels property</td>
6 % <tr><td><code>-1</code></td><td>"Refuse-to-decide": a classifier wasn't confident enough to assign a class. See @ref decider</td>
7 % <tr><td><code>-2</code></td><td>Outlier</td>
8 % <tr><td><code>-3</code></td><td>"Refuse-to-cluster". See @ref clus_hca</td>
9 % <tr><td><code>-10</code></td><td>not found / error in conversion</td>
10 %> </table>
11 
12 %> @param x A value <= -1
13 function s = get_negative_meaning(x)
14 
15 if x == -1
16  s = 'Refuse-to-decide';
17 elseif x == -2
18  s = 'Outlier';
19 elseif x == -3
20  s = 'Refuse-to-cluster';
21 elseif x == -10
22  s = 'Not found/error in conversion';
23 elseif x >= 0
24  irerror('< 0, please');
25 else
26  irerror(sprintf('Unrecognized: %d', x));
27 end;
function irerror(in s)
Block that resolves estimato posterior probabilities into classes.
Definition: decider.m:10
Hierarchical Clustering.
Definition: clus_hca.m:8