-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
58 lines (47 loc) · 1.36 KB
/
Copy pathmain.py
File metadata and controls
58 lines (47 loc) · 1.36 KB
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
# main.py
# --- Importy hypotez ---
from hypothesis.hypothesis import hypoteza1
from hypothesis.hypothesis2 import hypoteza2
from hypothesis.hypothesis3 import hypoteza3
from hypothesis.hypothesis4 import hypoteza4
from hypothesis.hypothesis5 import hypoteza5
# --- Import tříd ---
from chart import Chart
from сhiSquared import ChiSquaredAnalyzer
from anova import AnovaQ34
# --- Import otázek ---
from questions import *
def main():
# seznam všech hypotéz
hypotezy = [hypoteza1, hypoteza2, hypoteza3, hypoteza4, hypoteza5]
for hyp in hypotezy:
(
multi_choice_numbers,
multi_choice_lists,
group_list,
split_question,
group_names,
groups,
names_for_grafs,
) = hyp()
# Vykreslení grafů
chart = Chart(
multi_choice_numbers,
multi_choice_lists,
group_list,
split_question,
group_names,
groups,
names_for_grafs,
)
chart.run()
# Anova
anova = AnovaQ34(group_list, group_names)
anova.run()
anova.visualize()
# Chi-squared analýza
chi = ChiSquaredAnalyzer(group_list, group_names, multi_choice_numbers)
results = chi.run()
chi.visualize(results)
if __name__ == "__main__":
main()