bigbench 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.DS_Store +0 -0
- data/README.textile +254 -4
- data/Rakefile +43 -9
- data/doc/Array.html +288 -0
- data/doc/BigBench.html +32 -6
- data/doc/BigBench/Benchmark.html +24 -0
- data/doc/BigBench/Benchmark/Benchmark.html +24 -0
- data/doc/BigBench/Benchmark/Looper.html +24 -0
- data/doc/BigBench/Bot.html +24 -0
- data/doc/BigBench/Configuration.html +24 -0
- data/doc/BigBench/Configuration/Config.html +24 -0
- data/doc/BigBench/Configuration/InvalidOptions.html +24 -0
- data/doc/BigBench/Executor.html +33 -3
- data/doc/BigBench/Executor/InvalidCommand.html +25 -1
- data/doc/BigBench/Fragment.html +24 -0
- data/doc/BigBench/Fragment/Fragment.html +24 -0
- data/doc/BigBench/Output.html +24 -0
- data/doc/BigBench/PostProcessor.html +33 -6
- data/doc/BigBench/PostProcessor/Environment.html +489 -2
- data/doc/BigBench/PostProcessor/Environment/Appearings.html +327 -0
- data/doc/BigBench/PostProcessor/Environment/AttributeCluster.html +275 -0
- data/doc/BigBench/PostProcessor/Environment/BenchmarkNotFound.html +293 -0
- data/doc/BigBench/PostProcessor/Environment/Cluster.html +387 -0
- data/doc/BigBench/PostProcessor/Environment/NormalDistribution.html +383 -0
- data/doc/BigBench/PostProcessor/Environment/PolynomialRegression.html +438 -0
- data/doc/BigBench/PostProcessor/Environment/Statistics.html +568 -0
- data/doc/BigBench/PostProcessor/Graphs.html +270 -0
- data/doc/BigBench/PostProcessor/Graphs/LineGraph.html +403 -0
- data/doc/BigBench/PostProcessor/Graphs/PieGraph.html +396 -0
- data/doc/BigBench/PostProcessor/InvalidProcessor.html +25 -1
- data/doc/BigBench/PostProcessor/Processor.html +59 -7
- data/doc/BigBench/PostProcessor/Statistics.html +26 -2
- data/doc/BigBench/PostProcessor/Test.html +26 -2
- data/doc/BigBench/Runner.html +24 -0
- data/doc/BigBench/Runner/NoBenchmarksDefined.html +24 -0
- data/doc/BigBench/Store.html +24 -0
- data/doc/BigBench/Tracker.html +24 -0
- data/doc/BigBench/Tracker/Tracker.html +24 -0
- data/doc/EventMachineLoop.html +24 -0
- data/doc/Float.html +24 -0
- data/doc/Gemfile.html +24 -0
- data/doc/Helpers.html +78 -0
- data/doc/Object.html +29 -0
- data/doc/README_rdoc.html +803 -0
- data/doc/Rakefile.html +66 -10
- data/doc/created.rid +46 -40
- data/doc/index.html +667 -1
- data/doc/js/search_index.js +1 -1
- data/doc/lib/bigbench/help/executor_txt.html +32 -2
- data/doc/rdoc.css +4 -0
- data/doc/table_of_contents.html +179 -23
- data/doc/test_rdoc.html +159 -0
- data/lib/bigbench.rb +2 -0
- data/lib/bigbench/executor.rb +17 -1
- data/lib/bigbench/help/executor.txt +5 -0
- data/lib/bigbench/post_processor.rb +16 -32
- data/lib/bigbench/post_processor/environment.rb +525 -0
- data/lib/bigbench/post_processor/graphs.rb +209 -0
- data/lib/bigbench/post_processor/statistics.rb +29 -49
- data/lib/bigbench/version.rb +1 -1
- data/spec/executor_spec.rb +35 -0
- data/spec/helpers.rb +15 -1
- data/spec/post_processor_spec.rb +19 -4
- data/spec/post_processors/environment_spec.rb +412 -0
- data/spec/post_processors/graphs_spec.rb +23 -0
- data/spec/post_processors/statistics_spec.rb +3 -2
- data/spec/tests/local.rb +1 -1
- data/spec/tests/sample_results_big.ljson +51925 -0
- data/spec/tests/sample_results_small.ljson +3875 -0
- data/spec/tests/with_post_processor.ljson +43 -0
- data/spec/tests/with_post_processor.rb +12 -0
- data/spec/tmp/.DS_Store +0 -0
- data/spec/tracker_spec.rb +8 -8
- metadata +61 -101
@@ -0,0 +1,568 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class BigBench::PostProcessor::Environment::Statistics - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../../../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../../../index.html">Home</a>
|
28
|
+
<a href="../../../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../../../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/bigbench/post_processor/environment.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../../../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
<!-- Included Modules -->
|
67
|
+
<nav id="includes-section" class="section">
|
68
|
+
<h3 class="section-header">Included Modules</h3>
|
69
|
+
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
|
73
|
+
<li><a class="include" href="../Environment.html">BigBench::PostProcessor::Environment</a>
|
74
|
+
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</nav>
|
78
|
+
|
79
|
+
<!-- Method Quickref -->
|
80
|
+
<nav id="method-list-section" class="section">
|
81
|
+
<h3 class="section-header">Methods</h3>
|
82
|
+
|
83
|
+
<ul class="link-list">
|
84
|
+
|
85
|
+
<li><a href="#method-c-new">::new</a>
|
86
|
+
|
87
|
+
<li><a href="#method-i-average">#average</a>
|
88
|
+
|
89
|
+
<li><a href="#method-i-max">#max</a>
|
90
|
+
|
91
|
+
<li><a href="#method-i-mean">#mean</a>
|
92
|
+
|
93
|
+
<li><a href="#method-i-min">#min</a>
|
94
|
+
|
95
|
+
<li><a href="#method-i-sd">#sd</a>
|
96
|
+
|
97
|
+
<li><a href="#method-i-squared_deviation">#squared_deviation</a>
|
98
|
+
|
99
|
+
<li><a href="#method-i-standard_deviation">#standard_deviation</a>
|
100
|
+
|
101
|
+
<li><a href="#method-i-variance">#variance</a>
|
102
|
+
|
103
|
+
</ul>
|
104
|
+
</nav>
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
<div id="project-metadata">
|
109
|
+
<nav id="fileindex-section" class="section project-section">
|
110
|
+
<h3 class="section-header">Pages</h3>
|
111
|
+
|
112
|
+
<ul>
|
113
|
+
|
114
|
+
<li class="file"><a href="../../../Gemfile.html">Gemfile</a>
|
115
|
+
|
116
|
+
<li class="file"><a href="../../../README_rdoc.html">README</a>
|
117
|
+
|
118
|
+
<li class="file"><a href="../../../Rakefile.html">Rakefile</a>
|
119
|
+
|
120
|
+
<li class="file"><a href="../../../lib/bigbench/help/executor_txt.html">executor</a>
|
121
|
+
|
122
|
+
</ul>
|
123
|
+
</nav>
|
124
|
+
|
125
|
+
<nav id="classindex-section" class="section project-section">
|
126
|
+
<h3 class="section-header">Class and Module Index</h3>
|
127
|
+
|
128
|
+
<ul class="link-list">
|
129
|
+
|
130
|
+
<li><a href="../../../BigBench.html">BigBench</a>
|
131
|
+
|
132
|
+
<li><a href="../../../BigBench/Benchmark.html">BigBench::Benchmark</a>
|
133
|
+
|
134
|
+
<li><a href="../../../BigBench/Benchmark/Benchmark.html">BigBench::Benchmark::Benchmark</a>
|
135
|
+
|
136
|
+
<li><a href="../../../BigBench/Benchmark/Looper.html">BigBench::Benchmark::Looper</a>
|
137
|
+
|
138
|
+
<li><a href="../../../BigBench/Bot.html">BigBench::Bot</a>
|
139
|
+
|
140
|
+
<li><a href="../../../BigBench/Configuration.html">BigBench::Configuration</a>
|
141
|
+
|
142
|
+
<li><a href="../../../BigBench/Configuration/Config.html">BigBench::Configuration::Config</a>
|
143
|
+
|
144
|
+
<li><a href="../../../BigBench/Configuration/InvalidOptions.html">BigBench::Configuration::InvalidOptions</a>
|
145
|
+
|
146
|
+
<li><a href="../../../BigBench/Executor.html">BigBench::Executor</a>
|
147
|
+
|
148
|
+
<li><a href="../../../BigBench/Executor/InvalidCommand.html">BigBench::Executor::InvalidCommand</a>
|
149
|
+
|
150
|
+
<li><a href="../../../BigBench/Fragment.html">BigBench::Fragment</a>
|
151
|
+
|
152
|
+
<li><a href="../../../BigBench/Fragment/Fragment.html">BigBench::Fragment::Fragment</a>
|
153
|
+
|
154
|
+
<li><a href="../../../BigBench/Output.html">BigBench::Output</a>
|
155
|
+
|
156
|
+
<li><a href="../../../BigBench/PostProcessor.html">BigBench::PostProcessor</a>
|
157
|
+
|
158
|
+
<li><a href="../../../BigBench/PostProcessor/Environment.html">BigBench::PostProcessor::Environment</a>
|
159
|
+
|
160
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Appearings.html">BigBench::PostProcessor::Environment::Appearings</a>
|
161
|
+
|
162
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/AttributeCluster.html">BigBench::PostProcessor::Environment::AttributeCluster</a>
|
163
|
+
|
164
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/BenchmarkNotFound.html">BigBench::PostProcessor::Environment::BenchmarkNotFound</a>
|
165
|
+
|
166
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Cluster.html">BigBench::PostProcessor::Environment::Cluster</a>
|
167
|
+
|
168
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/NormalDistribution.html">BigBench::PostProcessor::Environment::NormalDistribution</a>
|
169
|
+
|
170
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/PolynomialRegression.html">BigBench::PostProcessor::Environment::PolynomialRegression</a>
|
171
|
+
|
172
|
+
<li><a href="../../../BigBench/PostProcessor/Environment/Statistics.html">BigBench::PostProcessor::Environment::Statistics</a>
|
173
|
+
|
174
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs.html">BigBench::PostProcessor::Graphs</a>
|
175
|
+
|
176
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/LineGraph.html">BigBench::PostProcessor::Graphs::LineGraph</a>
|
177
|
+
|
178
|
+
<li><a href="../../../BigBench/PostProcessor/Graphs/PieGraph.html">BigBench::PostProcessor::Graphs::PieGraph</a>
|
179
|
+
|
180
|
+
<li><a href="../../../BigBench/PostProcessor/InvalidProcessor.html">BigBench::PostProcessor::InvalidProcessor</a>
|
181
|
+
|
182
|
+
<li><a href="../../../BigBench/PostProcessor/Processor.html">BigBench::PostProcessor::Processor</a>
|
183
|
+
|
184
|
+
<li><a href="../../../BigBench/PostProcessor/Statistics.html">BigBench::PostProcessor::Statistics</a>
|
185
|
+
|
186
|
+
<li><a href="../../../BigBench/PostProcessor/Test.html">BigBench::PostProcessor::Test</a>
|
187
|
+
|
188
|
+
<li><a href="../../../BigBench/Runner.html">BigBench::Runner</a>
|
189
|
+
|
190
|
+
<li><a href="../../../BigBench/Runner/NoBenchmarksDefined.html">BigBench::Runner::NoBenchmarksDefined</a>
|
191
|
+
|
192
|
+
<li><a href="../../../BigBench/Store.html">BigBench::Store</a>
|
193
|
+
|
194
|
+
<li><a href="../../../BigBench/Tracker.html">BigBench::Tracker</a>
|
195
|
+
|
196
|
+
<li><a href="../../../BigBench/Tracker/Tracker.html">BigBench::Tracker::Tracker</a>
|
197
|
+
|
198
|
+
<li><a href="../../../Array.html">Array</a>
|
199
|
+
|
200
|
+
<li><a href="../../../EventMachineLoop.html">EventMachineLoop</a>
|
201
|
+
|
202
|
+
<li><a href="../../../Float.html">Float</a>
|
203
|
+
|
204
|
+
<li><a href="../../../Helpers.html">Helpers</a>
|
205
|
+
|
206
|
+
<li><a href="../../../Object.html">Object</a>
|
207
|
+
|
208
|
+
</ul>
|
209
|
+
</nav>
|
210
|
+
|
211
|
+
</div>
|
212
|
+
</nav>
|
213
|
+
|
214
|
+
<div id="documentation">
|
215
|
+
<h1 class="class">class BigBench::PostProcessor::Environment::Statistics</h1>
|
216
|
+
|
217
|
+
<div id="description" class="description">
|
218
|
+
|
219
|
+
<p>Calculates the default statistic values for a given attribute, like the
|
220
|
+
duration, requests, etc.</p>
|
221
|
+
|
222
|
+
</div><!-- description -->
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<!-- Attributes -->
|
236
|
+
<section id="attribute-method-details" class="method-section section">
|
237
|
+
<h3 class="section-header">Attributes</h3>
|
238
|
+
|
239
|
+
|
240
|
+
<div id="attribute-i-x" class="method-detail">
|
241
|
+
<div class="method-heading attribute-method-heading">
|
242
|
+
<span class="method-name">x</span><span
|
243
|
+
class="attribute-access-type">[R]</span>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div class="method-description">
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div id="attribute-i-y" class="method-detail">
|
254
|
+
<div class="method-heading attribute-method-heading">
|
255
|
+
<span class="method-name">y</span><span
|
256
|
+
class="attribute-access-type">[R]</span>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
<div class="method-description">
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</div>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
</section><!-- attribute-method-details -->
|
267
|
+
|
268
|
+
|
269
|
+
<!-- Methods -->
|
270
|
+
|
271
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
272
|
+
<h3 class="section-header">Public Class Methods</h3>
|
273
|
+
|
274
|
+
|
275
|
+
<div id="method-c-new" class="method-detail ">
|
276
|
+
|
277
|
+
<div class="method-heading">
|
278
|
+
<span class="method-name">new</span><span
|
279
|
+
class="method-args">(x, y, degree)</span>
|
280
|
+
<span class="method-click-advice">click to toggle source</span>
|
281
|
+
</div>
|
282
|
+
|
283
|
+
|
284
|
+
<div class="method-description">
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
<div class="method-source-code" id="new-source">
|
291
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 244</span>
|
292
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">degree</span>
|
293
|
+
<span class="ruby-ivar">@x</span>, <span class="ruby-ivar">@y</span> = <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>
|
294
|
+
<span class="ruby-keyword">end</span></pre>
|
295
|
+
</div><!-- new-source -->
|
296
|
+
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
</div><!-- new-method -->
|
303
|
+
|
304
|
+
|
305
|
+
</section><!-- public-class-method-details -->
|
306
|
+
|
307
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
308
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
309
|
+
|
310
|
+
|
311
|
+
<div id="method-i-average" class="method-detail method-alias">
|
312
|
+
|
313
|
+
<div class="method-heading">
|
314
|
+
<span class="method-name">average</span><span
|
315
|
+
class="method-args">()</span>
|
316
|
+
<span class="method-click-advice">click to toggle source</span>
|
317
|
+
</div>
|
318
|
+
|
319
|
+
|
320
|
+
<div class="method-description">
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
</div>
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div class="aliases">
|
332
|
+
Alias for: <a href="Statistics.html#method-i-mean">mean</a>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
</div><!-- average-method -->
|
336
|
+
|
337
|
+
|
338
|
+
<div id="method-i-max" class="method-detail ">
|
339
|
+
|
340
|
+
<div class="method-heading">
|
341
|
+
<span class="method-name">max</span><span
|
342
|
+
class="method-args">()</span>
|
343
|
+
<span class="method-click-advice">click to toggle source</span>
|
344
|
+
</div>
|
345
|
+
|
346
|
+
|
347
|
+
<div class="method-description">
|
348
|
+
|
349
|
+
<p>The maximum of the attribute</p>
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
<div class="method-source-code" id="max-source">
|
354
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 249</span>
|
355
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">max</span>
|
356
|
+
<span class="ruby-ivar">@y</span>.<span class="ruby-identifier">max</span>
|
357
|
+
<span class="ruby-keyword">end</span></pre>
|
358
|
+
</div><!-- max-source -->
|
359
|
+
|
360
|
+
</div>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
</div><!-- max-method -->
|
366
|
+
|
367
|
+
|
368
|
+
<div id="method-i-mean" class="method-detail ">
|
369
|
+
|
370
|
+
<div class="method-heading">
|
371
|
+
<span class="method-name">mean</span><span
|
372
|
+
class="method-args">()</span>
|
373
|
+
<span class="method-click-advice">click to toggle source</span>
|
374
|
+
</div>
|
375
|
+
|
376
|
+
|
377
|
+
<div class="method-description">
|
378
|
+
|
379
|
+
<p>The mean or average of the attribute</p>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<div class="method-source-code" id="mean-source">
|
384
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 259</span>
|
385
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mean</span>
|
386
|
+
<span class="ruby-ivar">@y</span>.<span class="ruby-identifier">average</span>
|
387
|
+
<span class="ruby-keyword">end</span></pre>
|
388
|
+
</div><!-- mean-source -->
|
389
|
+
|
390
|
+
</div>
|
391
|
+
|
392
|
+
|
393
|
+
<div class="aliases">
|
394
|
+
Also aliased as: <a href="Statistics.html#method-i-average">average</a>
|
395
|
+
</div>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</div><!-- mean-method -->
|
400
|
+
|
401
|
+
|
402
|
+
<div id="method-i-min" class="method-detail ">
|
403
|
+
|
404
|
+
<div class="method-heading">
|
405
|
+
<span class="method-name">min</span><span
|
406
|
+
class="method-args">()</span>
|
407
|
+
<span class="method-click-advice">click to toggle source</span>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
|
411
|
+
<div class="method-description">
|
412
|
+
|
413
|
+
<p>The minimum of the attribute</p>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
<div class="method-source-code" id="min-source">
|
418
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 254</span>
|
419
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">min</span>
|
420
|
+
<span class="ruby-ivar">@y</span>.<span class="ruby-identifier">min</span>
|
421
|
+
<span class="ruby-keyword">end</span></pre>
|
422
|
+
</div><!-- min-source -->
|
423
|
+
|
424
|
+
</div>
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
</div><!-- min-method -->
|
430
|
+
|
431
|
+
|
432
|
+
<div id="method-i-sd" class="method-detail method-alias">
|
433
|
+
|
434
|
+
<div class="method-heading">
|
435
|
+
<span class="method-name">sd</span><span
|
436
|
+
class="method-args">()</span>
|
437
|
+
<span class="method-click-advice">click to toggle source</span>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
<div class="method-description">
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
</div>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
<div class="aliases">
|
453
|
+
Alias for: <a href="Statistics.html#method-i-standard_deviation">standard_deviation</a>
|
454
|
+
</div>
|
455
|
+
|
456
|
+
</div><!-- sd-method -->
|
457
|
+
|
458
|
+
|
459
|
+
<div id="method-i-squared_deviation" class="method-detail ">
|
460
|
+
|
461
|
+
<div class="method-heading">
|
462
|
+
<span class="method-name">squared_deviation</span><span
|
463
|
+
class="method-args">()</span>
|
464
|
+
<span class="method-click-advice">click to toggle source</span>
|
465
|
+
</div>
|
466
|
+
|
467
|
+
|
468
|
+
<div class="method-description">
|
469
|
+
|
470
|
+
<p>The squared deviation or variance of the attribute</p>
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
<div class="method-source-code" id="squared_deviation-source">
|
475
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 272</span>
|
476
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">squared_deviation</span>
|
477
|
+
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">mean</span>
|
478
|
+
<span class="ruby-ivar">@y</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>){ <span class="ruby-operator">|</span><span class="ruby-identifier">result</span>, <span class="ruby-identifier">element</span><span class="ruby-operator">|</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">element</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">u</span>) <span class="ruby-operator">**</span> <span class="ruby-value">2</span> }.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-ivar">@y</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_f</span>
|
479
|
+
<span class="ruby-keyword">end</span></pre>
|
480
|
+
</div><!-- squared_deviation-source -->
|
481
|
+
|
482
|
+
</div>
|
483
|
+
|
484
|
+
|
485
|
+
<div class="aliases">
|
486
|
+
Also aliased as: <a href="Statistics.html#method-i-variance">variance</a>
|
487
|
+
</div>
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
</div><!-- squared_deviation-method -->
|
492
|
+
|
493
|
+
|
494
|
+
<div id="method-i-standard_deviation" class="method-detail ">
|
495
|
+
|
496
|
+
<div class="method-heading">
|
497
|
+
<span class="method-name">standard_deviation</span><span
|
498
|
+
class="method-args">()</span>
|
499
|
+
<span class="method-click-advice">click to toggle source</span>
|
500
|
+
</div>
|
501
|
+
|
502
|
+
|
503
|
+
<div class="method-description">
|
504
|
+
|
505
|
+
<p>The standard deviation or sd of the attribute</p>
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
<div class="method-source-code" id="standard_deviation-source">
|
510
|
+
<pre><span class="ruby-comment"># File lib/bigbench/post_processor/environment.rb, line 265</span>
|
511
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">standard_deviation</span>
|
512
|
+
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">mean</span>
|
513
|
+
<span class="ruby-ivar">@y</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>){ <span class="ruby-operator">|</span><span class="ruby-identifier">result</span>, <span class="ruby-identifier">element</span><span class="ruby-operator">|</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">element</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">u</span>).<span class="ruby-identifier">abs</span> }.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-ivar">@y</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_f</span>
|
514
|
+
<span class="ruby-keyword">end</span></pre>
|
515
|
+
</div><!-- standard_deviation-source -->
|
516
|
+
|
517
|
+
</div>
|
518
|
+
|
519
|
+
|
520
|
+
<div class="aliases">
|
521
|
+
Also aliased as: <a href="Statistics.html#method-i-sd">sd</a>
|
522
|
+
</div>
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
</div><!-- standard_deviation-method -->
|
527
|
+
|
528
|
+
|
529
|
+
<div id="method-i-variance" class="method-detail method-alias">
|
530
|
+
|
531
|
+
<div class="method-heading">
|
532
|
+
<span class="method-name">variance</span><span
|
533
|
+
class="method-args">()</span>
|
534
|
+
<span class="method-click-advice">click to toggle source</span>
|
535
|
+
</div>
|
536
|
+
|
537
|
+
|
538
|
+
<div class="method-description">
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
</div>
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<div class="aliases">
|
550
|
+
Alias for: <a href="Statistics.html#method-i-squared_deviation">squared_deviation</a>
|
551
|
+
</div>
|
552
|
+
|
553
|
+
</div><!-- variance-method -->
|
554
|
+
|
555
|
+
|
556
|
+
</section><!-- public-instance-method-details -->
|
557
|
+
|
558
|
+
</section><!-- 5Buntitled-5D -->
|
559
|
+
|
560
|
+
</div><!-- documentation -->
|
561
|
+
|
562
|
+
|
563
|
+
<footer id="validator-badges">
|
564
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
565
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
566
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
567
|
+
</footer>
|
568
|
+
|