1 %> @file HST_feat_means_test.m
2 %Tests the HST mean thingy features
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
12 %! %Create the signal, the sampling freq of the signal we have is 1024Hz
13 %! signal = HST_aqn_variable(data, 1024);
15 %! %Clean the signal a bit
16 %! signal = HST_filter_basic(signal);
18 %! %And compute the features:
19 %! mean = HST_feat_mean(signal);
20 %! meanderiv = HST_feat_meanderiv(signal);
22 %! assert(mean, 28.92, 0.01)
23 %! assert(meanderiv, -7.9938e-06, 1e-06); %FIXME