TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
RES_aqn_variable.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_aqn_variable.m
17 %> @brief RES_aqn_variable gets a RES signal from a variable
18 %
19 %> @param rawRES [1xN]: the raw RES signal
20 %> @param sampRate [1x1]: the sampling rate, in Hz
21 %
22 %> @retval Signal: A RES TEAP signal
23 %> @author Copyright Frank Villaro-Dixon, 2014
24 function Signal = RES_aqn_variable(rawRES, sampRate)
25 
26 if(nargin ~= 2)
27  error('Usage: RES_aqn_variable(rawRes, sampRate');
28 end
29 
30 Signal = RES__new_empty();
31 Signal = Signal__set_samprate(Signal, sampRate);
32 
33 Signal = Signal__set_raw(Signal, Raw_convert_1D(rawRES));
34 
35 %And we filter the signal. Else, it's useless
36 Signal = RES_filter_basic(Signal);
37 
38 
39 end
40 
Signal__set_raw
function Signal__set_raw(in Signal, in raw)
Raw_convert_1D
function Raw_convert_1D(in Raw)
RES_aqn_variable
function RES_aqn_variable(in rawRES, in sampRate)
Signal__set_samprate
function Signal__set_samprate(in Signal, in samprate)
RES__new_empty
function RES__new_empty()