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