-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (151 loc) · 7.33 KB
/
index.html
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
<!doctype html>
<html lang="cs">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, shrink-to-fit=no, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Testování JavaScriptových knihoven generátorů náhodných čísel">
<meta name="author" content="Tomáš Skořepa">
<title>STMOD | Testovat generátory</title>
<link href="content/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="content/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
<link href="content/css/simple-sidebar.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrapper">
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="#">
</a>
</li>
<li class="active">
<a href="index.html">Testovat generátory</a>
</li>
<li>
<a href="ownNumbers.html">Zadat vlastní čísla</a>
</li>
</ul>
</div>
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1>Testovat generátory náhodných čísel</h1>
<br/>
<div class="col-sm-7">
<h2>Předvolby generátoru</h2>
<br/>
<div class="form-group">
<div class="radio">
<label>
<input type="radio" name="rGeneratorSelected" id="optradioDefaultJS"
value="optDefaultJS" checked="checked"> JavaScript třída Math.random()
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="rGeneratorSelected" id="optradioSeedRandomJS"
value="optSeedRandomJS"> Knihovna seedrandom.js - algoritmus založen na RC4
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="rGeneratorSelected" id="optradioMersenne"
value="optMersenne"> Knihovna Random.js
- založeno na Mersenne Twister generátoru
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="rGeneratorSelected" id="optradioChanceJS"
value="optChanceJS"> Knihovna Chance.js
</label>
</div>
</div>
<div class="form-group">
<label for="inpNumbersGenerated">Počet čísel: </label>
<input type="text" id="inpNumbersGenerated" value="1000" size="4">
<label for="inpSeedNumber" id="lblInpSeedNumber">Seed (nelze): </label>
<input type="text" id="inpSeedNumber" value="" size="2" disabled>
</div>
<div class="form-group">
<button class="btn btn-info" id="btnGenerate"
onclick="generateNumbers();">Generovat</button>
</div>
<div class="form-group">
<h2>Testové kritérium</h2>
<p>
$\alpha$ = 0.05
<br/>
$u_{1-{\alpha / 2}}$ = $u_{0.975}$ = 1.959963985
</p>
</div>
<br/>
<h2>Jednotlivé testy</h2>
<table class="table table-condensed">
<thead>
</thead>
<tbody>
<tr>
<td><button class="btn btn-success" id="btnTestExtremal"
onclick="testExtremal();" disabled>Testovat</button></td>
<td>Test bodů zvratu</td>
</tr>
<tr>
<td><button class="btn btn-success" id="btnTestDifference"
onclick="testDifference();" disabled>Testovat</button></td>
<td>Test znamének diferencí</td>
</tr>
<tr>
<td><button class="btn btn-success" id="btnTestSpearman"
onclick="testSpearman();" disabled>Testovat</button></td>
<td>Spearmanův pořadový koeficient korelace</td>
</tr>
<tr>
<td><button class="btn btn-success" id="btnTestSerial"
onclick="testSerial();" disabled>Testovat</button></td>
<td>Seriální koeficient korelace / Cochranův test</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-5">
<h2>Generovaná čísla</h2>
<br/>
<div class="form-group">
<textarea class="form-control" id="generatedNumberArea" readonly></textarea>
</div>
</div>
<div class="col-sm-12">
<br/>
<div id="extremalBox">
</div>
<div id="diffBox">
</div>
<div id="spearmanBox">
</div>
<div id="serialBox">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="content/js/jquery.js"></script>
<script type="text/javascript" src="content/js/bootstrap.min.js"></script>
<script src="content/externalGenerators/random.min.js"></script>
<script src="content/externalGenerators/chance.min.js"></script>
<script src="content/externalGenerators/seedrandom.min.js"></script>
<script type="text/javascript" src="content/js/main.js" charset="utf-8"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]},
CommonHTML: {scale: 90}
});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
</body>
</html>