-
Notifications
You must be signed in to change notification settings - Fork 0
/
codebook.txt
executable file
·99 lines (90 loc) · 5.53 KB
/
codebook.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Original data sets come from the accelerometer and gyroscope 3-axial raw signals tAcc-XYZ and tGyro-XYZ. These time domain signals were captured at a constant rate of 50 Hz. Then they were filtered using a median filter and a 3rd order low pass Butterworth filter with a corner frequency of 20 Hz to remove noise. Similarly, the acceleration signal was then separated into body and gravity acceleration signals using another low pass Butterworth filter with a corner frequency of 0.3 Hz.
Subsequently, the body linear acceleration and angular velocity were derived in time to obtain Jerk signals. Also the magnitude of these three-dimensional signals were calculated using the Euclidean norm.
Finally a Fast Fourier Transform (FFT) was applied to some of these signals producing FrequencyDomain variables.
This large data set was used to:
1. extract just values for mean and standard deviation of all variables
2. change variable names into more understandable
3. calculate average values for each subject for each activity.
There were all together 30 subjects (from test and training sets).
Six (6) different activities were measured: walking, walking upstairs, walking downstairs,sitting, standing and laying
New table called tidy.data consists of 81 variable. Each variable is in columns. It starts with subject, activity and that is followed by variables listed below.
'-XYZ' is used to denote 3-axial signals in the X, Y and Z directions.
"TimeDomain.BodyAcceleration.Mean.X"
"TimeDomain.BodyAcceleration.Mean.Y"
"TimeDomain.BodyAcceleration.Mean.Z"
"TimeDomain.BodyAcceleration.StandardDeviation.X"
"TimeDomain.BodyAcceleration.StandardDeviation.Y"
"TimeDomain.BodyAcceleration.StandardDeviation.Z"
"TimeDomain.GravityAcceleration.Mean.X"
"TimeDomain.GravityAcceleration.Mean.Y"
"TimeDomain.GravityAcceleration.Mean.Z"
"TimeDomain.GravityAcceleration.StandardDeviation.X"
"TimeDomain.GravityAcceleration.StandardDeviation.Y"
"TimeDomain.GravityAcceleration.StandardDeviation.Z"
"TimeDomain.BodyAccelerationJerk.Mean.X"
"TimeDomain.BodyAccelerationJerk.Mean.Y"
"TimeDomain.BodyAccelerationJerk.Mean.Z"
"TimeDomain.BodyAccelerationJerk.StandardDeviation.X"
"TimeDomain.BodyAccelerationJerk.StandardDeviation.Y"
"TimeDomain.BodyAccelerationJerk.StandardDeviation.Z"
"TimeDomain.BodyAngularSpeed.Mean.X"
"TimeDomain.BodyAngularSpeed.Mean.Y"
"TimeDomain.BodyAngularSpeed.Mean.Z"
"TimeDomain.BodyAngularSpeed.StandardDeviation.X"
"TimeDomain.BodyAngularSpeed.StandardDeviation.Y"
"TimeDomain.BodyAngularSpeed.StandardDeviation.Z"
"TimeDomain.BodyAngularAcceleration.Mean.X"
"TimeDomain.BodyAngularAcceleration.Mean.Y"
"TimeDomain.BodyAngularAcceleration.Mean.Z"
"TimeDomain.BodyAngularAcceleration.StandardDeviation.X"
"TimeDomain.BodyAngularAcceleration.StandardDeviation.Y"
"TimeDomain.BodyAngularAcceleration.StandardDeviation.Z"
"TimeDomain.BodyAccelerationMagnitude.Mean"
"TimeDomain.BodyAccelerationMagnitude.StandardDeviation"
"TimeDomain.GravityAccelerationMagnitude.Mean"
"TimeDomain.GravityAccelerationMagnitude.StandardDeviation"
"TimeDomain.BodyAccelerationJerkMagnitude.Mean"
"TimeDomain.BodyAccelerationJerkMagnitude.StandardDeviation"
"TimeDomain.BodyAngularSpeedMagnitude.Mean"
"TimeDomain.BodyAngularSpeedMagnitude.StandardDeviation"
"TimeDomain.BodyAngularAccelerationMagnitude.Mean"
"TimeDomain.BodyAngularAccelerationMagnitude.StandardDeviation"
"FrequencyDomain.BodyAcceleration.Mean.X"
"FrequencyDomain.BodyAcceleration.Mean.Y"
"FrequencyDomain.BodyAcceleration.Mean.Z"
"FrequencyDomain.BodyAcceleration.StandardDeviation.X"
"FrequencyDomain.BodyAcceleration.StandardDeviation.Y"
"FrequencyDomain.BodyAcceleration.StandardDeviation.Z"
"FrequencyDomain.BodyAcceleration.MeanFrequency.X"
"FrequencyDomain.BodyAcceleration.MeanFrequency.Y"
"FrequencyDomain.BodyAcceleration.MeanFrequency.Z"
"FrequencyDomain.BodyAccelerationJerk.Mean.X"
"FrequencyDomain.BodyAccelerationJerk.Mean.Y"
"FrequencyDomain.BodyAccelerationJerk.Mean.Z"
"FrequencyDomain.BodyAccelerationJerk.StandardDeviation.X"
"FrequencyDomain.BodyAccelerationJerk.StandardDeviation.Y"
"FrequencyDomain.BodyAccelerationJerk.StandardDeviation.Z"
"FrequencyDomain.BodyAccelerationJerk.MeanFrequency.X"
"FrequencyDomain.BodyAccelerationJerk.MeanFrequency.Y"
"FrequencyDomain.BodyAccelerationJerk.MeanFrequency.Z"
"FrequencyDomain.BodyAngularSpeed.Mean.X"
"FrequencyDomain.BodyAngularSpeed.Mean.Y"
"FrequencyDomain.BodyAngularSpeed.Mean.Z"
"FrequencyDomain.BodyAngularSpeed.StandardDeviation.X"
"FrequencyDomain.BodyAngularSpeed.StandardDeviation.Y"
"FrequencyDomain.BodyAngularSpeed.StandardDeviation.Z"
"FrequencyDomain.BodyAngularSpeed.MeanFrequency.X"
"FrequencyDomain.BodyAngularSpeed.MeanFrequency.Y"
"FrequencyDomain.BodyAngularSpeed.MeanFrequency.Z"
"FrequencyDomain.BodyAccelerationMagnitude.Mean"
"FrequencyDomain.BodyAccelerationMagnitude.StandardDeviation"
"FrequencyDomain.BodyAccelerationMagnitude.MeanFrequency"
"FrequencyDomain.BodyBodyAccelerationJerkMagnitude.Mean"
"FrequencyDomain.BodyBodyAccelerationJerkMagnitude.StandardDeviation"
"FrequencyDomain.BodyBodyAccelerationJerkMagnitude.MeanFrequency"
"FrequencyDomain.BodyBodyAngularSpeedMagnitude.Mean"
"FrequencyDomain.BodyBodyAngularSpeedMagnitude.StandardDeviation"
"FrequencyDomain.BodyBodyAngularSpeedMagnitude.MeanFrequency"
"FrequencyDomain.BodyBodyAngularAccelerationMagnitude.Mean"
"FrequencyDomain.BodyBodyAngularAccelerationMagnitude.StandardDeviation"
"FrequencyDomain.BodyBodyAngularAccelerationMagnitude.MeanFrequency"