TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
BVP_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 BVP_filter_basic.m
17 %> @brief Cleans a signal adding a low-pass median filter to it. The window equals the
18 %> sample rate, aka 1 sec.
19 %> @param BVPsignal: the @b BVP signal.
20 %> @retval Signal: the filtered @b BVP signal
21 %
22 %> @author Copyright Frank Villaro-Dixon, 2014
23 function BVPsignal = BVP_filter_basic(BVPsignal)
24 
25 
26 %Make sure we have a BVP signal
27 BVPsignal = BVP__assert_type(BVPsignal);
28 
29 sampRate = Signal__get_samprate(BVPsignal);
30 
31 BVPsignal = Signal_filter1_low_median(BVPsignal, sampRate/8); %FIXME: sampRate seems to be far too much filtering, temporarily changed to /8
32 
Signal__get_samprate
function Signal__get_samprate(in Signal)
BVP__assert_type
function BVP__assert_type(in Signal)
Signal_filter1_low_median
function Signal_filter1_low_median(in Signal, in windowSize)
BVP_filter_basic
function BVP_filter_basic(in BVPsignal)