TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
RES_filter_basic.m
Go to the documentation of this file.
1 %This file is part of TEAP.
2 %
3 %TEAP is free software: you can redistribute it and/or modify
4 %it under the terms of the GNU General Public License as published by
5 %the Free Software Foundation, either version 3 of the License, or
6 %(at your option) any later version.
7 %
8 %TEAP is distributed in the hope that it will be useful,
9 %but WITHOUT ANY WARRANTY; without even the implied warranty of
10 %MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 %GNU General Public License for more details.
12 %
13 %You should have received a copy of the GNU General Public License
14 %along with TEAP. If not, see <http://www.gnu.org/licenses/>.
15 %
16 %> @file RES_filter_basic.m
17 %> @brief Cleans a signal adding a low-pass mean filter to it. The window equals the
18 %> sample rate, aka 1 sec.
19 
20 %> @param RESsignal: the RES signal.
21 
22 %> @retval Signal: the filtered RES signal
23 
24 %> @author Copyright Frank Villaro-Dixon, 2014
25 function RESsignal = RES_filter_basic(RESsignal)
26 
27 
28 %Make sure we have a RES signal
29 RESsignal = RES__assert_type(RESsignal);
30 
31 sampRate = Signal__get_samprate(RESsignal);
32 
33 RESsignal = Signal_filter1_low_mean(RESsignal, round(sampRate/16));
Signal__get_samprate
function Signal__get_samprate(in Signal)
RES_filter_basic
function RES_filter_basic(in RESsignal)
RES__assert_type
function RES__assert_type(in Signal)
Signal_filter1_low_mean
function Signal_filter1_low_mean(in Signal, in windowSize)