TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
HST_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 HST_filter_basic.m
17 %> @brief Cleans an HST signal using a low-pass mean filter. The window equals the sample
18 %> rate, aka 1sec
19 %> Copyright Frank Villaro-Dixon, 2014
20 %
21 %> @param HSTSignal the HST signal to filter
22 %> @retval HSTSignal the HST signal filtered
23 
24 function HSTSignal = HST_filter_basic(HSTSignal)
25 
26 HSTSignal = HST__assert_type(HSTSignal);
27 
28 sampRate = Signal__get_samprate(HSTSignal);
29 
30 HSTSignal = Signal_filter1_low_mean(HSTSignal, sampRate);
31 
Signal__get_samprate
function Signal__get_samprate(in Signal)
HST_filter_basic
function HST_filter_basic(in HSTSignal)
HST__assert_type
function HST__assert_type(in Signal)
Signal_filter1_low_mean
function Signal_filter1_low_mean(in Signal, in windowSize)