first draft for first deadline.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user