Initial commit

This commit is contained in:
SheetJS 2013-12-14 02:43:55 -05:00
commit 771b56dcc5
108 changed files with 151326 additions and 0 deletions

1
.gitignore vendored Normal file

@ -0,0 +1 @@
test_files/out.*

6
.travis.yml Normal file

@ -0,0 +1,6 @@
language: node_js
node_js:
- "0.10"
- "0.8"
before_install:
- "npm install -g mocha"

9
LICENSE Normal file

@ -0,0 +1,9 @@
Copyright (C) 2013 SheetJS
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

35
Makefile Normal file

@ -0,0 +1,35 @@
ifndef BASE
BASE=2
endif
ifndef NELTS
NELTS=10
endif
BASELINE=./test_files/baseline.$(BASE).$(NELTS)
TESTFILE=./test_files/out.$(BASE).$(NELTS)
.PHONY: test
test: $(BASELINE)
node test_files/test_standalone.js $(BASE) $(NELTS) > $(TESTFILE)
diff $(BASELINE) $(TESTFILE)
.PHONY: mocha
mocha: $(BASELINE)
mocha -R spec
.PHONY: baseline
baseline $(BASELINE):
bash test_files/generate_baseline.sh $(BASE) $(NELTS) > $(BASELINE)
.PHONY: all
all:
bash test_files/make.sh
.PHONY: clean
clean:
rm -f test_files/out.*
.PHONY: clean-base
clean-base: clean
rm -f test_files/baseline.*

60
README.md Normal file

@ -0,0 +1,60 @@
# VDC
Pure JS implementation of van der Corput low-discrepancy sequences.
## Installation
Available on [npm vdc](http://npm.im/vdc):
```
$ npm install vdc
```
## Usage
The exported function `VDC` accepts a `opts` object with the following fields:
- `b` (default `2`) base for the sequence.
- `n` (default `0`) starting index for the sequence.
Calling without arguments will default to the aforementioned values.
The object returned by `VDC` exposes a `next()` method to get the next element.
The field `last` holds the most recently generated value (accessing the field
does not trigger a recalculation)
## Sample Session
```
var VDC = require('vdc')
var opts = {'n':0, 'b':2};
var generator = VDC(opts);
for(var i = 0; i != 10; ++i) console.log(generator.next());
```
The expected output is
```
0 (0/1)
0.5 (1/2)
0.25 (1/4)
0.75 (3/4)
0.125 (1/8)
0.625 (5/8)
0.375 (3/8)
0.875 (7/8)
0.0625 (1/16)
0.5625 (9/16)
```
## Notes
`0` is the first value. Some sources (notably Wikipedia) start the sequence at
`1/2`, but others (Glasserman "Monte Carlo Methods in Financial Engineering")
claim that the original sequence definition started at `0`.
## License
MIT-licensed. See `LICENSE`

17
package.json Normal file

@ -0,0 +1,17 @@
{
"name": "vdc",
"version": "0.1.1",
"author": "SheetJS",
"description": "van der Corput low-discrepancy sequences",
"keywords": [ "math", "random", "qrng", "lds" ],
"main": "./vdc",
"devDependencies": {
"mocha":""
},
"repository": { "type":"git", "url":"git://github.com/SheetJS/js-vdc.git" },
"scripts": {
"test": "make mocha"
},
"bugs": { "url": "https://github.com/SheetJS/js-vdc/issues" },
"license": "MIT"
}

20
test.js Normal file

@ -0,0 +1,20 @@
/* Copyright (C) 2013 SheetJS */
/* vim: set ts=2: */
var VDC;
var fs = require('fs'), assert = require('assert');
describe('source', function() { it('should load', function() { VDC = require('./'); }); });
var files = (fs.existsSync('tests.lst') ? fs.readFileSync('tests.lst', 'utf-8').split("\n") : fs.readdirSync('test_files')).filter(function(x){return x.substr(0,9)=="baseline.";});
describe('should reproduce baselines', function() {
files.forEach(function(x) {
var d = x.substr(9).split("."), base = d[0], elts = d[1];
it("base=" + base + " elts=" + elts, function() {
var opts = {'n':1,'b':base};
var gen = VDC(opts);
var data = fs.readFileSync('./test_files/' + x, 'utf-8').split("\n")
.filter(function(x) { return x.length > 1; });
for(var i = 1; i <= elts; ++i) assert.equal((i +"\t"+ gen.next().toFixed(6)).slice(0,-1),data[i-1].slice(0,-1));
});
});
});

10
test_files/baseline.11.10 Normal file

@ -0,0 +1,10 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545
6 0.545455
7 0.636364
8 0.727273
9 0.818182
10 0.909091

100
test_files/baseline.11.100 Normal file

@ -0,0 +1,100 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545
6 0.545455
7 0.636364
8 0.727273
9 0.818182
10 0.909091
11 0.008264
12 0.099174
13 0.190083
14 0.280992
15 0.371901
16 0.462810
17 0.553719
18 0.644628
19 0.735537
20 0.826446
21 0.917355
22 0.016529
23 0.107438
24 0.198347
25 0.289256
26 0.380165
27 0.471074
28 0.561983
29 0.652893
30 0.743802
31 0.834711
32 0.925620
33 0.024793
34 0.115702
35 0.206612
36 0.297521
37 0.388430
38 0.479339
39 0.570248
40 0.661157
41 0.752066
42 0.842975
43 0.933884
44 0.033058
45 0.123967
46 0.214876
47 0.305785
48 0.396694
49 0.487603
50 0.578512
51 0.669421
52 0.760331
53 0.851240
54 0.942149
55 0.041322
56 0.132231
57 0.223140
58 0.314050
59 0.404959
60 0.495868
61 0.586777
62 0.677686
63 0.768595
64 0.859504
65 0.950413
66 0.049587
67 0.140496
68 0.231405
69 0.322314
70 0.413223
71 0.504132
72 0.595041
73 0.685950
74 0.776860
75 0.867769
76 0.958678
77 0.057851
78 0.148760
79 0.239669
80 0.330579
81 0.421488
82 0.512397
83 0.603306
84 0.694215
85 0.785124
86 0.876033
87 0.966942
88 0.066116
89 0.157025
90 0.247934
91 0.338843
92 0.429752
93 0.520661
94 0.611570
95 0.702479
96 0.793388
97 0.884298
98 0.975207
99 0.074380
100 0.165289

1000
test_files/baseline.11.1000 Normal file

File diff suppressed because it is too large Load Diff

10000
test_files/baseline.11.10000 Normal file

File diff suppressed because it is too large Load Diff

2
test_files/baseline.11.2 Normal file

@ -0,0 +1,2 @@
1 0.090909
2 0.181818

20
test_files/baseline.11.20 Normal file

@ -0,0 +1,20 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545
6 0.545455
7 0.636364
8 0.727273
9 0.818182
10 0.909091
11 0.008264
12 0.099174
13 0.190083
14 0.280992
15 0.371901
16 0.462810
17 0.553719
18 0.644628
19 0.735537
20 0.826446

200
test_files/baseline.11.200 Normal file

@ -0,0 +1,200 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545
6 0.545455
7 0.636364
8 0.727273
9 0.818182
10 0.909091
11 0.008264
12 0.099174
13 0.190083
14 0.280992
15 0.371901
16 0.462810
17 0.553719
18 0.644628
19 0.735537
20 0.826446
21 0.917355
22 0.016529
23 0.107438
24 0.198347
25 0.289256
26 0.380165
27 0.471074
28 0.561983
29 0.652893
30 0.743802
31 0.834711
32 0.925620
33 0.024793
34 0.115702
35 0.206612
36 0.297521
37 0.388430
38 0.479339
39 0.570248
40 0.661157
41 0.752066
42 0.842975
43 0.933884
44 0.033058
45 0.123967
46 0.214876
47 0.305785
48 0.396694
49 0.487603
50 0.578512
51 0.669421
52 0.760331
53 0.851240
54 0.942149
55 0.041322
56 0.132231
57 0.223140
58 0.314050
59 0.404959
60 0.495868
61 0.586777
62 0.677686
63 0.768595
64 0.859504
65 0.950413
66 0.049587
67 0.140496
68 0.231405
69 0.322314
70 0.413223
71 0.504132
72 0.595041
73 0.685950
74 0.776860
75 0.867769
76 0.958678
77 0.057851
78 0.148760
79 0.239669
80 0.330579
81 0.421488
82 0.512397
83 0.603306
84 0.694215
85 0.785124
86 0.876033
87 0.966942
88 0.066116
89 0.157025
90 0.247934
91 0.338843
92 0.429752
93 0.520661
94 0.611570
95 0.702479
96 0.793388
97 0.884298
98 0.975207
99 0.074380
100 0.165289
101 0.256198
102 0.347107
103 0.438017
104 0.528926
105 0.619835
106 0.710744
107 0.801653
108 0.892562
109 0.983471
110 0.082645
111 0.173554
112 0.264463
113 0.355372
114 0.446281
115 0.537190
116 0.628099
117 0.719008
118 0.809917
119 0.900826
120 0.991736
121 0.000751
122 0.091660
123 0.182569
124 0.273479
125 0.364388
126 0.455297
127 0.546206
128 0.637115
129 0.728024
130 0.818933
131 0.909842
132 0.009016
133 0.099925
134 0.190834
135 0.281743
136 0.372652
137 0.463561
138 0.554470
139 0.645379
140 0.736289
141 0.827198
142 0.918107
143 0.017280
144 0.108189
145 0.199098
146 0.290008
147 0.380917
148 0.471826
149 0.562735
150 0.653644
151 0.744553
152 0.835462
153 0.926371
154 0.025545
155 0.116454
156 0.207363
157 0.298272
158 0.389181
159 0.480090
160 0.570999
161 0.661908
162 0.752817
163 0.843727
164 0.934636
165 0.033809
166 0.124718
167 0.215627
168 0.306536
169 0.397446
170 0.488355
171 0.579264
172 0.670173
173 0.761082
174 0.851991
175 0.942900
176 0.042074
177 0.132983
178 0.223892
179 0.314801
180 0.405710
181 0.496619
182 0.587528
183 0.678437
184 0.769346
185 0.860255
186 0.951165
187 0.050338
188 0.141247
189 0.232156
190 0.323065
191 0.413974
192 0.504884
193 0.595793
194 0.686702
195 0.777611
196 0.868520
197 0.959429
198 0.058603
199 0.149512
200 0.240421

2000
test_files/baseline.11.2000 Normal file

File diff suppressed because it is too large Load Diff

5
test_files/baseline.11.5 Normal file

@ -0,0 +1,5 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545

50
test_files/baseline.11.50 Normal file

@ -0,0 +1,50 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545
6 0.545455
7 0.636364
8 0.727273
9 0.818182
10 0.909091
11 0.008264
12 0.099174
13 0.190083
14 0.280992
15 0.371901
16 0.462810
17 0.553719
18 0.644628
19 0.735537
20 0.826446
21 0.917355
22 0.016529
23 0.107438
24 0.198347
25 0.289256
26 0.380165
27 0.471074
28 0.561983
29 0.652893
30 0.743802
31 0.834711
32 0.925620
33 0.024793
34 0.115702
35 0.206612
36 0.297521
37 0.388430
38 0.479339
39 0.570248
40 0.661157
41 0.752066
42 0.842975
43 0.933884
44 0.033058
45 0.123967
46 0.214876
47 0.305785
48 0.396694
49 0.487603
50 0.578512

500
test_files/baseline.11.500 Normal file

@ -0,0 +1,500 @@
1 0.090909
2 0.181818
3 0.272727
4 0.363636
5 0.454545
6 0.545455
7 0.636364
8 0.727273
9 0.818182
10 0.909091
11 0.008264
12 0.099174
13 0.190083
14 0.280992
15 0.371901
16 0.462810
17 0.553719
18 0.644628
19 0.735537
20 0.826446
21 0.917355
22 0.016529
23 0.107438
24 0.198347
25 0.289256
26 0.380165
27 0.471074
28 0.561983
29 0.652893
30 0.743802
31 0.834711
32 0.925620
33 0.024793
34 0.115702
35 0.206612
36 0.297521
37 0.388430
38 0.479339
39 0.570248
40 0.661157
41 0.752066
42 0.842975
43 0.933884
44 0.033058
45 0.123967
46 0.214876
47 0.305785
48 0.396694
49 0.487603
50 0.578512
51 0.669421
52 0.760331
53 0.851240
54 0.942149
55 0.041322
56 0.132231
57 0.223140
58 0.314050
59 0.404959
60 0.495868
61 0.586777
62 0.677686
63 0.768595
64 0.859504
65 0.950413
66 0.049587
67 0.140496
68 0.231405
69 0.322314
70 0.413223
71 0.504132
72 0.595041
73 0.685950
74 0.776860
75 0.867769
76 0.958678
77 0.057851
78 0.148760
79 0.239669
80 0.330579
81 0.421488
82 0.512397
83 0.603306
84 0.694215
85 0.785124
86 0.876033
87 0.966942
88 0.066116
89 0.157025
90 0.247934
91 0.338843
92 0.429752
93 0.520661
94 0.611570
95 0.702479
96 0.793388
97 0.884298
98 0.975207
99 0.074380
100 0.165289
101 0.256198
102 0.347107
103 0.438017
104 0.528926
105 0.619835
106 0.710744
107 0.801653
108 0.892562
109 0.983471
110 0.082645
111 0.173554
112 0.264463
113 0.355372
114 0.446281
115 0.537190
116 0.628099
117 0.719008
118 0.809917
119 0.900826
120 0.991736
121 0.000751
122 0.091660
123 0.182569
124 0.273479
125 0.364388
126 0.455297
127 0.546206
128 0.637115
129 0.728024
130 0.818933
131 0.909842
132 0.009016
133 0.099925
134 0.190834
135 0.281743
136 0.372652
137 0.463561
138 0.554470
139 0.645379
140 0.736289
141 0.827198
142 0.918107
143 0.017280
144 0.108189
145 0.199098
146 0.290008
147 0.380917
148 0.471826
149 0.562735
150 0.653644
151 0.744553
152 0.835462
153 0.926371
154 0.025545
155 0.116454
156 0.207363
157 0.298272
158 0.389181
159 0.480090
160 0.570999
161 0.661908
162 0.752817
163 0.843727
164 0.934636
165 0.033809
166 0.124718
167 0.215627
168 0.306536
169 0.397446
170 0.488355
171 0.579264
172 0.670173
173 0.761082
174 0.851991
175 0.942900
176 0.042074
177 0.132983
178 0.223892
179 0.314801
180 0.405710
181 0.496619
182 0.587528
183 0.678437
184 0.769346
185 0.860255
186 0.951165
187 0.050338
188 0.141247
189 0.232156
190 0.323065
191 0.413974
192 0.504884
193 0.595793
194 0.686702
195 0.777611
196 0.868520
197 0.959429
198 0.058603
199 0.149512
200 0.240421
201 0.331330
202 0.422239
203 0.513148
204 0.604057
205 0.694966
206 0.785875
207 0.876784
208 0.967693
209 0.066867
210 0.157776
211 0.248685
212 0.339594
213 0.430503
214 0.521412
215 0.612322
216 0.703231
217 0.794140
218 0.885049
219 0.975958
220 0.075131
221 0.166041
222 0.256950
223 0.347859
224 0.438768
225 0.529677
226 0.620586
227 0.711495
228 0.802404
229 0.893313
230 0.984222
231 0.083396
232 0.174305
233 0.265214
234 0.356123
235 0.447032
236 0.537941
237 0.628850
238 0.719760
239 0.810669
240 0.901578
241 0.992487
242 0.001503
243 0.092412
244 0.183321
245 0.274230
246 0.365139
247 0.456048
248 0.546957
249 0.637866
250 0.728775
251 0.819684
252 0.910594
253 0.009767
254 0.100676
255 0.191585
256 0.282494
257 0.373403
258 0.464313
259 0.555222
260 0.646131
261 0.737040
262 0.827949
263 0.918858
264 0.018032
265 0.108941
266 0.199850
267 0.290759
268 0.381668
269 0.472577
270 0.563486
271 0.654395
272 0.745304
273 0.836213
274 0.927122
275 0.026296
276 0.117205
277 0.208114
278 0.299023
279 0.389932
280 0.480841
281 0.571751
282 0.662660
283 0.753569
284 0.844478
285 0.935387
286 0.034560
287 0.125470
288 0.216379
289 0.307288
290 0.398197
291 0.489106
292 0.580015
293 0.670924
294 0.761833
295 0.852742
296 0.943651
297 0.042825
298 0.133734
299 0.224643
300 0.315552
301 0.406461
302 0.497370
303 0.588279
304 0.679189
305 0.770098
306 0.861007
307 0.951916
308 0.051089
309 0.141998
310 0.232908
311 0.323817
312 0.414726
313 0.505635
314 0.596544
315 0.687453
316 0.778362
317 0.869271
318 0.960180
319 0.059354
320 0.150263
321 0.241172
322 0.332081
323 0.422990
324 0.513899
325 0.604808
326 0.695718
327 0.786627
328 0.877536
329 0.968445
330 0.067618
331 0.158527
332 0.249437
333 0.340346
334 0.431255
335 0.522164
336 0.613073
337 0.703982
338 0.794891
339 0.885800
340 0.976709
341 0.075883
342 0.166792
343 0.257701
344 0.348610
345 0.439519
346 0.530428
347 0.621337
348 0.712246
349 0.803156
350 0.894065
351 0.984974
352 0.084147
353 0.175056
354 0.265965
355 0.356875
356 0.447784
357 0.538693
358 0.629602
359 0.720511
360 0.811420
361 0.902329
362 0.993238
363 0.002254
364 0.093163
365 0.184072
366 0.274981
367 0.365890
368 0.456799
369 0.547708
370 0.638618
371 0.729527
372 0.820436
373 0.911345
374 0.010518
375 0.101427
376 0.192337
377 0.283246
378 0.374155
379 0.465064
380 0.555973
381 0.646882
382 0.737791
383 0.828700
384 0.919609
385 0.018783
386 0.109692
387 0.200601
388 0.291510
389 0.382419
390 0.473328
391 0.564237
392 0.655147
393 0.746056
394 0.836965
395 0.927874
396 0.027047
397 0.117956
398 0.208866
399 0.299775
400 0.390684
401 0.481593
402 0.572502
403 0.663411
404 0.754320
405 0.845229
406 0.936138
407 0.035312
408 0.126221
409 0.217130
410 0.308039
411 0.398948
412 0.489857
413 0.580766
414 0.671675
415 0.762585
416 0.853494
417 0.944403
418 0.043576
419 0.134485
420 0.225394
421 0.316304
422 0.407213
423 0.498122
424 0.589031
425 0.679940
426 0.770849
427 0.861758
428 0.952667
429 0.051841
430 0.142750
431 0.233659
432 0.324568
433 0.415477
434 0.506386
435 0.597295
436 0.688204
437 0.779113
438 0.870023
439 0.960932
440 0.060105
441 0.151014
442 0.241923
443 0.332832
444 0.423742
445 0.514651
446 0.605560
447 0.696469
448 0.787378
449 0.878287
450 0.969196
451 0.068370
452 0.159279
453 0.250188
454 0.341097
455 0.432006
456 0.522915
457 0.613824
458 0.704733
459 0.795642
460 0.886551
461 0.977461
462 0.076634
463 0.167543
464 0.258452
465 0.349361
466 0.440270
467 0.531180
468 0.622089
469 0.712998
470 0.803907
471 0.894816
472 0.985725
473 0.084899
474 0.175808
475 0.266717
476 0.357626
477 0.448535
478 0.539444
479 0.630353
480 0.721262
481 0.812171
482 0.903080
483 0.993989
484 0.003005
485 0.093914
486 0.184823
487 0.275733
488 0.366642
489 0.457551
490 0.548460
491 0.639369
492 0.730278
493 0.821187
494 0.912096
495 0.011270
496 0.102179
497 0.193088
498 0.283997
499 0.374906
500 0.465815

5000
test_files/baseline.11.5000 Normal file

File diff suppressed because it is too large Load Diff

10
test_files/baseline.13.10 Normal file

@ -0,0 +1,10 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615
6 0.461538
7 0.538462
8 0.615385
9 0.692308
10 0.769231

100
test_files/baseline.13.100 Normal file

@ -0,0 +1,100 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615
6 0.461538
7 0.538462
8 0.615385
9 0.692308
10 0.769231
11 0.846154
12 0.923077
13 0.005917
14 0.082840
15 0.159763
16 0.236686
17 0.313609
18 0.390533
19 0.467456
20 0.544379
21 0.621302
22 0.698225
23 0.775148
24 0.852071
25 0.928994
26 0.011834
27 0.088757
28 0.165680
29 0.242604
30 0.319527
31 0.396450
32 0.473373
33 0.550296
34 0.627219
35 0.704142
36 0.781065
37 0.857988
38 0.934911
39 0.017751
40 0.094675
41 0.171598
42 0.248521
43 0.325444
44 0.402367
45 0.479290
46 0.556213
47 0.633136
48 0.710059
49 0.786982
50 0.863905
51 0.940828
52 0.023669
53 0.100592
54 0.177515
55 0.254438
56 0.331361
57 0.408284
58 0.485207
59 0.562130
60 0.639053
61 0.715976
62 0.792899
63 0.869822
64 0.946746
65 0.029586
66 0.106509
67 0.183432
68 0.260355
69 0.337278
70 0.414201
71 0.491124
72 0.568047
73 0.644970
74 0.721893
75 0.798817
76 0.875740
77 0.952663
78 0.035503
79 0.112426
80 0.189349
81 0.266272
82 0.343195
83 0.420118
84 0.497041
85 0.573964
86 0.650888
87 0.727811
88 0.804734
89 0.881657
90 0.958580
91 0.041420
92 0.118343
93 0.195266
94 0.272189
95 0.349112
96 0.426036
97 0.502959
98 0.579882
99 0.656805
100 0.733728

1000
test_files/baseline.13.1000 Normal file

File diff suppressed because it is too large Load Diff

10000
test_files/baseline.13.10000 Normal file

File diff suppressed because it is too large Load Diff

2
test_files/baseline.13.2 Normal file

@ -0,0 +1,2 @@
1 0.076923
2 0.153846

20
test_files/baseline.13.20 Normal file

@ -0,0 +1,20 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615
6 0.461538
7 0.538462
8 0.615385
9 0.692308
10 0.769231
11 0.846154
12 0.923077
13 0.005917
14 0.082840
15 0.159763
16 0.236686
17 0.313609
18 0.390533
19 0.467456
20 0.544379

200
test_files/baseline.13.200 Normal file

@ -0,0 +1,200 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615
6 0.461538
7 0.538462
8 0.615385
9 0.692308
10 0.769231
11 0.846154
12 0.923077
13 0.005917
14 0.082840
15 0.159763
16 0.236686
17 0.313609
18 0.390533
19 0.467456
20 0.544379
21 0.621302
22 0.698225
23 0.775148
24 0.852071
25 0.928994
26 0.011834
27 0.088757
28 0.165680
29 0.242604
30 0.319527
31 0.396450
32 0.473373
33 0.550296
34 0.627219
35 0.704142
36 0.781065
37 0.857988
38 0.934911
39 0.017751
40 0.094675
41 0.171598
42 0.248521
43 0.325444
44 0.402367
45 0.479290
46 0.556213
47 0.633136
48 0.710059
49 0.786982
50 0.863905
51 0.940828
52 0.023669
53 0.100592
54 0.177515
55 0.254438
56 0.331361
57 0.408284
58 0.485207
59 0.562130
60 0.639053
61 0.715976
62 0.792899
63 0.869822
64 0.946746
65 0.029586
66 0.106509
67 0.183432
68 0.260355
69 0.337278
70 0.414201
71 0.491124
72 0.568047
73 0.644970
74 0.721893
75 0.798817
76 0.875740
77 0.952663
78 0.035503
79 0.112426
80 0.189349
81 0.266272
82 0.343195
83 0.420118
84 0.497041
85 0.573964
86 0.650888
87 0.727811
88 0.804734
89 0.881657
90 0.958580
91 0.041420
92 0.118343
93 0.195266
94 0.272189
95 0.349112
96 0.426036
97 0.502959
98 0.579882
99 0.656805
100 0.733728
101 0.810651
102 0.887574
103 0.964497
104 0.047337
105 0.124260
106 0.201183
107 0.278107
108 0.355030
109 0.431953
110 0.508876
111 0.585799
112 0.662722
113 0.739645
114 0.816568
115 0.893491
116 0.970414
117 0.053254
118 0.130178
119 0.207101
120 0.284024
121 0.360947
122 0.437870
123 0.514793
124 0.591716
125 0.668639
126 0.745562
127 0.822485
128 0.899408
129 0.976331
130 0.059172
131 0.136095
132 0.213018
133 0.289941
134 0.366864
135 0.443787
136 0.520710
137 0.597633
138 0.674556
139 0.751479
140 0.828402
141 0.905325
142 0.982249
143 0.065089
144 0.142012
145 0.218935
146 0.295858
147 0.372781
148 0.449704
149 0.526627
150 0.603550
151 0.680473
152 0.757396
153 0.834320
154 0.911243
155 0.988166
156 0.071006
157 0.147929
158 0.224852
159 0.301775
160 0.378698
161 0.455621
162 0.532544
163 0.609467
164 0.686391
165 0.763314
166 0.840237
167 0.917160
168 0.994083
169 0.000455
170 0.077378
171 0.154301
172 0.231224
173 0.308147
174 0.385071
175 0.461994
176 0.538917
177 0.615840
178 0.692763
179 0.769686
180 0.846609
181 0.923532
182 0.006372
183 0.083295
184 0.160218
185 0.237142
186 0.314065
187 0.390988
188 0.467911
189 0.544834
190 0.621757
191 0.698680
192 0.775603
193 0.852526
194 0.929449
195 0.012289
196 0.089213
197 0.166136
198 0.243059
199 0.319982
200 0.396905

2000
test_files/baseline.13.2000 Normal file

File diff suppressed because it is too large Load Diff

5
test_files/baseline.13.5 Normal file

@ -0,0 +1,5 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615

50
test_files/baseline.13.50 Normal file

@ -0,0 +1,50 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615
6 0.461538
7 0.538462
8 0.615385
9 0.692308
10 0.769231
11 0.846154
12 0.923077
13 0.005917
14 0.082840
15 0.159763
16 0.236686
17 0.313609
18 0.390533
19 0.467456
20 0.544379
21 0.621302
22 0.698225
23 0.775148
24 0.852071
25 0.928994
26 0.011834
27 0.088757
28 0.165680
29 0.242604
30 0.319527
31 0.396450
32 0.473373
33 0.550296
34 0.627219
35 0.704142
36 0.781065
37 0.857988
38 0.934911
39 0.017751
40 0.094675
41 0.171598
42 0.248521
43 0.325444
44 0.402367
45 0.479290
46 0.556213
47 0.633136
48 0.710059
49 0.786982
50 0.863905

500
test_files/baseline.13.500 Normal file

@ -0,0 +1,500 @@
1 0.076923
2 0.153846
3 0.230769
4 0.307692
5 0.384615
6 0.461538
7 0.538462
8 0.615385
9 0.692308
10 0.769231
11 0.846154
12 0.923077
13 0.005917
14 0.082840
15 0.159763
16 0.236686
17 0.313609
18 0.390533
19 0.467456
20 0.544379
21 0.621302
22 0.698225
23 0.775148
24 0.852071
25 0.928994
26 0.011834
27 0.088757
28 0.165680
29 0.242604
30 0.319527
31 0.396450
32 0.473373
33 0.550296
34 0.627219
35 0.704142
36 0.781065
37 0.857988
38 0.934911
39 0.017751
40 0.094675
41 0.171598
42 0.248521
43 0.325444
44 0.402367
45 0.479290
46 0.556213
47 0.633136
48 0.710059
49 0.786982
50 0.863905
51 0.940828
52 0.023669
53 0.100592
54 0.177515
55 0.254438
56 0.331361
57 0.408284
58 0.485207
59 0.562130
60 0.639053
61 0.715976
62 0.792899
63 0.869822
64 0.946746
65 0.029586
66 0.106509
67 0.183432
68 0.260355
69 0.337278
70 0.414201
71 0.491124
72 0.568047
73 0.644970
74 0.721893
75 0.798817
76 0.875740
77 0.952663
78 0.035503
79 0.112426
80 0.189349
81 0.266272
82 0.343195
83 0.420118
84 0.497041
85 0.573964
86 0.650888
87 0.727811
88 0.804734
89 0.881657
90 0.958580
91 0.041420
92 0.118343
93 0.195266
94 0.272189
95 0.349112
96 0.426036
97 0.502959
98 0.579882
99 0.656805
100 0.733728
101 0.810651
102 0.887574
103 0.964497
104 0.047337
105 0.124260
106 0.201183
107 0.278107
108 0.355030
109 0.431953
110 0.508876
111 0.585799
112 0.662722
113 0.739645
114 0.816568
115 0.893491
116 0.970414
117 0.053254
118 0.130178
119 0.207101
120 0.284024
121 0.360947
122 0.437870
123 0.514793
124 0.591716
125 0.668639
126 0.745562
127 0.822485
128 0.899408
129 0.976331
130 0.059172
131 0.136095
132 0.213018
133 0.289941
134 0.366864
135 0.443787
136 0.520710
137 0.597633
138 0.674556
139 0.751479
140 0.828402
141 0.905325
142 0.982249
143 0.065089
144 0.142012
145 0.218935
146 0.295858
147 0.372781
148 0.449704
149 0.526627
150 0.603550
151 0.680473
152 0.757396
153 0.834320
154 0.911243
155 0.988166
156 0.071006
157 0.147929
158 0.224852
159 0.301775
160 0.378698
161 0.455621
162 0.532544
163 0.609467
164 0.686391
165 0.763314
166 0.840237
167 0.917160
168 0.994083
169 0.000455
170 0.077378
171 0.154301
172 0.231224
173 0.308147
174 0.385071
175 0.461994
176 0.538917
177 0.615840
178 0.692763
179 0.769686
180 0.846609
181 0.923532
182 0.006372
183 0.083295
184 0.160218
185 0.237142
186 0.314065
187 0.390988
188 0.467911
189 0.544834
190 0.621757
191 0.698680
192 0.775603
193 0.852526
194 0.929449
195 0.012289
196 0.089213
197 0.166136
198 0.243059
199 0.319982
200 0.396905
201 0.473828
202 0.550751
203 0.627674
204 0.704597
205 0.781520
206 0.858443
207 0.935366
208 0.018207
209 0.095130
210 0.172053
211 0.248976
212 0.325899
213 0.402822
214 0.479745
215 0.556668
216 0.633591
217 0.710514
218 0.787437
219 0.864360
220 0.941284
221 0.024124
222 0.101047
223 0.177970
224 0.254893
225 0.331816
226 0.408739
227 0.485662
228 0.562585
229 0.639508
230 0.716431
231 0.793355
232 0.870278
233 0.947201
234 0.030041
235 0.106964
236 0.183887
237 0.260810
238 0.337733
239 0.414656
240 0.491579
241 0.568503
242 0.645426
243 0.722349
244 0.799272
245 0.876195
246 0.953118
247 0.035958
248 0.112881
249 0.189804
250 0.266727
251 0.343650
252 0.420574
253 0.497497
254 0.574420
255 0.651343
256 0.728266
257 0.805189
258 0.882112
259 0.959035
260 0.041875
261 0.118798
262 0.195721
263 0.272645
264 0.349568