TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
HST_feat_means_test.m
Go to the documentation of this file.
1 %> @file HST_feat_means_test.m
2 %Tests the HST mean thingy features
3 
4 %!test
5 %! %Before all, load TEAP
6 %! addpath(genpath('../../../'))
7 %! %First, we load some data:
8 %! data = csvread('HST_example.csv');
9 %! data = data'; %put in horizontal form
10 %!
11 %!
12 %! %Create the signal, the sampling freq of the signal we have is 1024Hz
13 %! signal = HST_aqn_variable(data, 1024);
14 %!
15 %! %Clean the signal a bit
16 %! signal = HST_filter_basic(signal);
17 %!
18 %! %And compute the features:
19 %! mean = HST_feat_mean(signal);
20 %! meanderiv = HST_feat_meanderiv(signal);
21 %!
22 %! assert(mean, 28.92, 0.01)
23 %! assert(meanderiv, -7.9938e-06, 1e-06); %FIXME
24