forked from AlejoEnriquez2/GreenLightDistrict_Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWhitney.R
167 lines (136 loc) · 7.85 KB
/
Whitney.R
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
library(ggplot2)
library(dplyr)
library(stats)
# Perform Mann-Whitney U Test for duration question
# for electron nd web apps for 2 mins and 8 mins - energy
mwu_result_energy_2 <- wilcox.test(data_file_web_2$energy, data_file_electron_2$energy, alternative = "two.sided")
print(mwu_result_energy_2)
# for electron and web for 8 mins
mwu_result_energy_8 <- wilcox.test(data_file_web_8$energy, data_file_electron_8$energy, alternative = "two.sided")
# Print the test result
print(mwu_result_energy_8)
# for electron nd web apps for 2 mins and 8 mins - cpu
mwu_result_cpu_2 <- wilcox.test(data_file_web_2$cpu, data_file_electron_2$cpu, alternative = "two.sided")
print(mwu_result_cpu_2)
# for electron and web for 8 mins
mwu_result_cpu_8 <- wilcox.test(data_file_web_8$cpu, data_file_electron_8$cpu, alternative = "two.sided")
print(mwu_result_cpu_8)
# For electron and web apps for 2 mins - memory
mwu_result_memory_2 <- wilcox.test(data_file_web_2$memory, data_file_electron_2$memory, alternative = "two.sided")
print(mwu_result_memory_2)
# For electron and web apps for 8 mins - memory
mwu_result_memory_8 <- wilcox.test(data_file_web_8$memory, data_file_electron_8$memory, alternative = "two.sided")
print(mwu_result_memory_8)
# For electron and web apps for 2 mins - network
mwu_result_network_2 <- wilcox.test(data_file_web_2$network, data_file_electron_2$network, alternative = "two.sided")
print(mwu_result_network_2)
# For electron and web apps for 8 mins - network
mwu_result_network_8 <- wilcox.test(data_file_web_8$network, data_file_electron_8$network, alternative = "two.sided")
print(mwu_result_network_8)
# perform test for modes of interaction
# For 2 mins duration
mwu_result_energy_2_micon <- wilcox.test(electron_micon_2$energy, web_micon_2$energy, alternative = "two.sided")
mwu_result_energy_2_camera <- wilcox.test(electron_camera_2$energy, web_camera_2$energy, alternative = "two.sided")
mwu_result_energy_2_screen_mic <- wilcox.test(electron_screen_mic_2$energy, web_screen_mic_2$energy, alternative = "two.sided")
mwu_result_energy_2_camera_mic <- wilcox.test(electron_camera_mic_2$energy, web_camera_mic_2$energy, alternative = "two.sided")
mwu_result_cpu_2_micon <- wilcox.test(electron_micon_2$cpu, web_micon_2$cpu, alternative = "two.sided")
mwu_result_cpu_2_camera <- wilcox.test(electron_camera_2$cpu, web_camera_2$cpu, alternative = "two.sided")
mwu_result_cpu_2_screen_mic <- wilcox.test(electron_screen_mic_2$cpu, web_screen_mic_2$cpu, alternative = "two.sided")
mwu_result_cpu_2_camera_mic <- wilcox.test(electron_camera_mic_2$cpu, web_camera_mic_2$cpu, alternative = "two.sided")
mwu_result_network_2_micon <- wilcox.test(electron_micon_2$network, web_micon_2$network, alternative = "two.sided")
mwu_result_network_2_camera <- wilcox.test(electron_camera_2$network, web_camera_2$network, alternative = "two.sided")
mwu_result_network_2_screen_mic <- wilcox.test(electron_screen_mic_2$network, web_screen_mic_2$network, alternative = "two.sided")
mwu_result_network_2_camera_mic <- wilcox.test(electron_camera_mic_2$network, web_camera_mic_2$network, alternative = "two.sided")
mwu_result_memory_2_micon <- wilcox.test(electron_micon_2$memory, web_micon_2$memory, alternative = "two.sided")
mwu_result_memory_2_camera <- wilcox.test(electron_camera_2$memory, web_camera_2$memory, alternative = "two.sided")
mwu_result_memory_2_screen_mic <- wilcox.test(electron_screen_mic_2$memory, web_screen_mic_2$memory, alternative = "two.sided")
mwu_result_memory_2_camera_mic <- wilcox.test(electron_camera_mic_2$memory, web_camera_mic_2$memory, alternative = "two.sided")
# Print the test results
print("Energy - 2 mins - Mic")
print(mwu_result_energy_2_micon)
print("Energy - 2 mins - Camera")
print(mwu_result_energy_2_camera)
print("Energy - 2 mins - Screen Mic")
print(mwu_result_energy_2_screen_mic)
print("Energy - 2 mins - Camera Mic")
print(mwu_result_energy_2_camera_mic)
# For 2 mins duration - CPU
print("CPU - 2 mins - Mic")
print(mwu_result_cpu_2_micon)
print("CPU - 2 mins - Camera")
print(mwu_result_cpu_2_camera)
print("CPU - 2 mins - Screen Mic")
print(mwu_result_cpu_2_screen_mic)
print("CPU - 2 mins - Camera Mic")
print(mwu_result_cpu_2_camera_mic)
# For 2 mins duration - Network
print("Network - 2 mins - Mic")
print(mwu_result_network_2_micon)
print("Network - 2 mins - Camera")
print(mwu_result_network_2_camera)
print("Network - 2 mins - Screen Mic")
print(mwu_result_network_2_screen_mic)
print("Network - 2 mins - Camera Mic")
print(mwu_result_network_2_camera_mic)
# For 2 mins duration - Memory
print("Memory - 2 mins - Mic")
print(mwu_result_memory_2_micon)
print("Memory - 2 mins - Camera")
print(mwu_result_memory_2_camera)
print("Memory - 2 mins - Screen Mic")
print(mwu_result_memory_2_screen_mic)
print("Memory - 2 mins - Camera Mic")
print(mwu_result_memory_2_camera_mic)
# For 8 mins duration
mwu_result_energy_8_micon <- wilcox.test(electron_micon_8$energy, web_micon_8$energy, alternative = "two.sided")
mwu_result_energy_8_camera <- wilcox.test(electron_camera_8$energy, web_camera_8$energy, alternative = "two.sided")
mwu_result_energy_8_screen_mic <- wilcox.test(electron_screen_mic_8$energy, web_screen_mic_8$energy, alternative = "two.sided")
mwu_result_energy_8_camera_mic <- wilcox.test(electron_camera_mic_8$energy, web_camera_mic_8$energy, alternative = "two.sided")
mwu_result_cpu_8_micon <- wilcox.test(electron_micon_8$cpu, web_micon_8$cpu, alternative = "two.sided")
mwu_result_cpu_8_camera <- wilcox.test(electron_camera_8$cpu, web_camera_8$cpu, alternative = "two.sided")
mwu_result_cpu_8_screen_mic <- wilcox.test(electron_screen_mic_8$cpu, web_screen_mic_8$cpu, alternative = "two.sided")
mwu_result_cpu_8_camera_mic <- wilcox.test(electron_camera_mic_8$cpu, web_camera_mic_8$cpu, alternative = "two.sided")
mwu_result_network_8_micon <- wilcox.test(electron_micon_8$network, web_micon_8$network, alternative = "two.sided")
mwu_result_network_8_camera <- wilcox.test(electron_camera_8$network, web_camera_8$network, alternative = "two.sided")
mwu_result_network_8_screen_mic <- wilcox.test(electron_screen_mic_8$network, web_screen_mic_8$network, alternative = "two.sided")
mwu_result_network_8_camera_mic <- wilcox.test(electron_camera_mic_8$network, web_camera_mic_8$network, alternative = "two.sided")
mwu_result_memory_8_micon <- wilcox.test(electron_micon_8$memory, web_micon_8$memory, alternative = "two.sided")
mwu_result_memory_8_camera <- wilcox.test(electron_camera_8$memory, web_camera_8$memory, alternative = "two.sided")
mwu_result_memory_8_screen_mic <- wilcox.test(electron_screen_mic_8$memory, web_screen_mic_8$memory, alternative = "two.sided")
mwu_result_memory_8_camera_mic <- wilcox.test(electron_camera_mic_8$memory, web_camera_mic_8$memory, alternative = "two.sided")
# Print the test results
print("Energy - 8 mins - Mic")
print(mwu_result_energy_8_micon)
print("Energy - 8 mins - Camera")
print(mwu_result_energy_8_camera)
print("Energy - 8 mins - Screen Mic")
print(mwu_result_energy_8_screen_mic)
print("Energy - 8 mins - Camera Mic")
print(mwu_result_energy_8_camera_mic)
# For 8 mins duration - CPU
print("CPU - 8 mins - Mic")
print(mwu_result_cpu_8_micon)
print("CPU - 8 mins - Camera")
print(mwu_result_cpu_8_camera)
print("CPU - 8 mins - Screen Mic")
print(mwu_result_cpu_8_screen_mic)
print("CPU - 8 mins - Camera Mic")
print(mwu_result_cpu_8_camera_mic)
# For 8 mins duration - Network
print("Network - 8 mins - Mic")
print(mwu_result_network_8_micon)
print("Network - 8 mins - Camera")
print(mwu_result_network_8_camera)
print("Network - 8 mins - Screen Mic")
print(mwu_result_network_8_screen_mic)
print("Network - 8 mins - Camera Mic")
print(mwu_result_network_8_camera_mic)
# For 8 mins duration - Memory
print("Memory - 8 mins - Mic")
print(mwu_result_memory_8_micon)
print("Memory - 8 mins - Camera")
print(mwu_result_memory_8_camera)
print("Memory - 8 mins - Screen Mic")
print(mwu_result_memory_8_screen_mic)
print("Memory - 8 mins - Camera Mic")
print(mwu_result_memory_8_camera_mic)