2 % QC_HISTO performs quality control
using histogram and entropy analysis
6 % plota(R); displays the result as in [1]
9 % [1] A. Schlögl, B. Kemp, T. Penzel, D. Kunz, S.-L. Himanen, A. Värri, G. Dorffner, G. Pfurtscheller.
10 % Quality Control of polysomnographic Sleep Data by Histogram and Entropy Analysis.
11 % Clin. Neurophysiol. 1999, Dec; 110(12): 2165 - 2170.
15 % $Id:
qc_histo.m 2202 2009-10-27 12:06:45Z schloegl $
16 % Copyright (C) 2006 by Alois Schloegl <a.schloegl@ieee.org>
17 % This is part of the BIOSIG-toolbox http:
20 % This program is free software; you can redistribute it and/or
21 % modify it under the terms of the GNU General Public License
22 % as published by the Free Software Foundation; either version 2
23 % of the License, or (at your option) any later version.
25 % This program is distributed in the hope that it will be useful,
26 % but WITHOUT ANY WARRANTY; without even the implied warranty of
27 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 % GNU General Public License
for more details.
30 % You should have received a copy of the GNU General Public License
31 % along with
this program;
if not, write to the Free Software
32 % Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 elseif ~isnumeric(arg2)
45 HDR =
sopen(fn,
'r',CHAN,MODE);
52 %HDR.Threshold = repmat([-1,1]/1e2,HDR.NS,1);
53 HDR.datatype =
'qc:histo';
55 [HDR.AR,HDR.RC,HDR.PE] = lattice(center(s)
',50);