first draft for first deadline.

This commit is contained in:
Toni
2016-01-11 05:33:22 +01:00
parent 6231455fb0
commit 934f75873e
6 changed files with 225 additions and 42265 deletions

View File

@@ -13,6 +13,8 @@ classes[1 to 5]
access the cells using classes{u}.samples{v}.raw{w}
#}
source("functions.m");
source("settings.m")
global setWindowSize;
classes = {};
classes = getRawTrainData();
@@ -45,12 +47,12 @@ classes[1 to 5]
3x WindowsMagnitude (Accel, Gyro, Magnet)
Win, Win, Win, Win ... <--- single matrices
access the cells using classes{u}.samples{v}.raw{w}.wins{}
access the cells using classes{u}.samples{v}.raw{signal, window)
pca uses the eigenvector with the heighest eigenvalue as axis and projects the signals onto it for each sensor.
magnitude is calculated using sqrt(x^2 + y^2 + z^2) for each sensor.
#}
windowedClasses = windowData(filteredClasses);
windowedClasses = windowData(classes);
#calculated features for the 5 signales (x, y, z, MG, PCA) of a sensor
#{
@@ -60,7 +62,8 @@ data structure of features
features = featureCalculation(windowedClasses);
#save features
save features.txt features;
name = strcat("features_", num2str(setWindowSize),"_xyz_nomag_psd18.txt");
save(name, 'features');
display("saved features into features.txt");