Commit 5bcfee4d5d465618db31bea4d2e408aa27e94e89
1 parent
e3447353
Exists in
master
Added README
Showing
4 changed files
with
202 additions
and
191 deletions
Show diff stats
README.md
@@ -0,0 +1,9 @@ | @@ -0,0 +1,9 @@ | ||
1 | +# SASP - Stochastic ASP | ||
2 | + | ||
3 | +> This repository contains code and data used in the paper _An Algebraic Approach to Stochastic ASP_ | ||
4 | + | ||
5 | + | ||
6 | +There are two [julia](https://julialang.org/) files: | ||
7 | + | ||
8 | +- `sampling.jl` generates (and saves) a sample following the process described in the _Model+Noise_ item in subsection 4.1 of the paper. | ||
9 | +- `sample_analysis.jl` analyses, summarizes and outputs `LaTeX` rows of the samples above. | ||
0 | \ No newline at end of file | 10 | \ No newline at end of file |
data/model_sample-[0.0;0.3;0.2].csv
1 | event | 1 | event |
2 | A | 2 | A |
3 | A | 3 | A |
4 | -A | ||
5 | -A | ||
6 | -A | ||
7 | -A | ||
8 | -A | 4 | +ac |
9 | ab | 5 | ab |
10 | A | 6 | A |
11 | -A | ||
12 | -A | ||
13 | -A | ||
14 | -A | ||
15 | ac | 7 | ac |
16 | -A | ||
17 | -A | 8 | +ac |
18 | ac | 9 | ac |
19 | A | 10 | A |
20 | A | 11 | A |
21 | A | 12 | A |
22 | -ab | ||
23 | A | 13 | A |
24 | A | 14 | A |
25 | A | 15 | A |
26 | A | 16 | A |
27 | A | 17 | A |
28 | A | 18 | A |
29 | -ac | ||
30 | A | 19 | A |
31 | A | 20 | A |
32 | A | 21 | A |
33 | -ac | ||
34 | A | 22 | A |
35 | A | 23 | A |
36 | -ac | ||
37 | -ac | ||
38 | A | 24 | A |
39 | ac | 25 | ac |
40 | A | 26 | A |
41 | A | 27 | A |
42 | -ac | ||
43 | A | 28 | A |
44 | A | 29 | A |
45 | A | 30 | A |
31 | +ab | ||
32 | +A | ||
46 | A | 33 | A |
47 | A | 34 | A |
48 | A | 35 | A |
@@ -50,7 +37,6 @@ A | @@ -50,7 +37,6 @@ A | ||
50 | A | 37 | A |
51 | A | 38 | A |
52 | ac | 39 | ac |
53 | -ab | ||
54 | A | 40 | A |
55 | A | 41 | A |
56 | A | 42 | A |
@@ -59,8 +45,13 @@ A | @@ -59,8 +45,13 @@ A | ||
59 | ac | 45 | ac |
60 | A | 46 | A |
61 | A | 47 | A |
48 | +ab | ||
49 | +ab | ||
62 | A | 50 | A |
63 | ac | 51 | ac |
52 | +ac | ||
53 | +A | ||
54 | +ab | ||
64 | A | 55 | A |
65 | A | 56 | A |
66 | A | 57 | A |
@@ -68,45 +59,50 @@ ac | @@ -68,45 +59,50 @@ ac | ||
68 | A | 59 | A |
69 | A | 60 | A |
70 | A | 61 | A |
71 | -ac | ||
72 | A | 62 | A |
73 | A | 63 | A |
74 | A | 64 | A |
75 | A | 65 | A |
76 | ac | 66 | ac |
67 | +ac | ||
77 | A | 68 | A |
78 | A | 69 | A |
79 | A | 70 | A |
80 | -ab | ||
81 | -A | ||
82 | A | 71 | A |
72 | +ac | ||
83 | A | 73 | A |
84 | -ab | ||
85 | A | 74 | A |
86 | -ab | 75 | +ac |
87 | A | 76 | A |
77 | +ac | ||
88 | A | 78 | A |
89 | A | 79 | A |
90 | ab | 80 | ab |
91 | A | 81 | A |
92 | A | 82 | A |
83 | +ac | ||
93 | A | 84 | A |
94 | ac | 85 | ac |
95 | ac | 86 | ac |
87 | +ac | ||
96 | A | 88 | A |
97 | -ab | ||
98 | A | 89 | A |
99 | A | 90 | A |
100 | -ac | ||
101 | A | 91 | A |
102 | A | 92 | A |
93 | +ac | ||
103 | A | 94 | A |
104 | A | 95 | A |
96 | +ab | ||
97 | +ac | ||
98 | +ac | ||
99 | +ac | ||
105 | ac | 100 | ac |
106 | A | 101 | A |
107 | A | 102 | A |
108 | A | 103 | A |
109 | A | 104 | A |
105 | +ac | ||
110 | A | 106 | A |
111 | A | 107 | A |
112 | ac | 108 | ac |
@@ -115,14 +111,10 @@ ac | @@ -115,14 +111,10 @@ ac | ||
115 | A | 111 | A |
116 | A | 112 | A |
117 | ac | 113 | ac |
118 | -ac | ||
119 | A | 114 | A |
120 | -ac | ||
121 | -ac | ||
122 | A | 115 | A |
123 | A | 116 | A |
124 | A | 117 | A |
125 | -ac | ||
126 | A | 118 | A |
127 | A | 119 | A |
128 | A | 120 | A |
@@ -130,18 +122,22 @@ ac | @@ -130,18 +122,22 @@ ac | ||
130 | A | 122 | A |
131 | ac | 123 | ac |
132 | A | 124 | A |
125 | +A | ||
126 | +A | ||
127 | +A | ||
128 | +A | ||
129 | +A | ||
133 | ab | 130 | ab |
134 | -ac | ||
135 | A | 131 | A |
136 | ac | 132 | ac |
133 | +ac | ||
134 | +A | ||
137 | A | 135 | A |
138 | A | 136 | A |
139 | -ab | ||
140 | A | 137 | A |
141 | ac | 138 | ac |
142 | A | 139 | A |
143 | ac | 140 | ac |
144 | -ab | ||
145 | ac | 141 | ac |
146 | A | 142 | A |
147 | A | 143 | A |
@@ -149,18 +145,20 @@ ac | @@ -149,18 +145,20 @@ ac | ||
149 | A | 145 | A |
150 | A | 146 | A |
151 | A | 147 | A |
148 | +ac | ||
152 | A | 149 | A |
153 | A | 150 | A |
154 | A | 151 | A |
155 | ac | 152 | ac |
153 | +ac | ||
156 | A | 154 | A |
157 | A | 155 | A |
158 | A | 156 | A |
159 | A | 157 | A |
160 | A | 158 | A |
161 | -ac | ||
162 | A | 159 | A |
163 | A | 160 | A |
161 | +ab | ||
164 | ac | 162 | ac |
165 | A | 163 | A |
166 | A | 164 | A |
@@ -174,22 +172,18 @@ A | @@ -174,22 +172,18 @@ A | ||
174 | A | 172 | A |
175 | A | 173 | A |
176 | A | 174 | A |
177 | -A | ||
178 | -A | ||
179 | ac | 175 | ac |
180 | A | 176 | A |
181 | A | 177 | A |
182 | -ac | ||
183 | -A | ||
184 | A | 178 | A |
179 | +ac | ||
185 | A | 180 | A |
186 | ac | 181 | ac |
182 | +A | ||
187 | ac | 183 | ac |
188 | ac | 184 | ac |
189 | A | 185 | A |
190 | A | 186 | A |
191 | -ac | ||
192 | -A | ||
193 | A | 187 | A |
194 | A | 188 | A |
195 | A | 189 | A |
@@ -197,21 +191,16 @@ A | @@ -197,21 +191,16 @@ A | ||
197 | A | 191 | A |
198 | A | 192 | A |
199 | A | 193 | A |
200 | -ab | ||
201 | A | 194 | A |
195 | +ac | ||
202 | A | 196 | A |
203 | A | 197 | A |
204 | A | 198 | A |
205 | -ac | ||
206 | -ac | ||
207 | A | 199 | A |
208 | ab | 200 | ab |
209 | A | 201 | A |
210 | -A | ||
211 | ac | 202 | ac |
212 | -ab | ||
213 | -A | ||
214 | -A | 203 | +ac |
215 | A | 204 | A |
216 | A | 205 | A |
217 | ac | 206 | ac |
@@ -220,15 +209,11 @@ ac | @@ -220,15 +209,11 @@ ac | ||
220 | A | 209 | A |
221 | ac | 210 | ac |
222 | A | 211 | A |
223 | -A | ||
224 | ac | 212 | ac |
225 | A | 213 | A |
226 | A | 214 | A |
227 | -ab | ||
228 | -ac | ||
229 | A | 215 | A |
230 | -ac | ||
231 | -ac | 216 | +A |
232 | A | 217 | A |
233 | A | 218 | A |
234 | ac | 219 | ac |
@@ -238,26 +223,27 @@ ac | @@ -238,26 +223,27 @@ ac | ||
238 | A | 223 | A |
239 | A | 224 | A |
240 | A | 225 | A |
241 | -ac | ||
242 | A | 226 | A |
227 | +ac | ||
243 | A | 228 | A |
244 | A | 229 | A |
245 | A | 230 | A |
231 | +ac | ||
246 | A | 232 | A |
247 | A | 233 | A |
248 | A | 234 | A |
249 | A | 235 | A |
250 | A | 236 | A |
251 | A | 237 | A |
238 | +ab | ||
252 | A | 239 | A |
253 | A | 240 | A |
254 | A | 241 | A |
255 | A | 242 | A |
256 | -ab | 243 | +ac |
257 | ac | 244 | ac |
258 | A | 245 | A |
259 | A | 246 | A |
260 | -ac | ||
261 | A | 247 | A |
262 | A | 248 | A |
263 | A | 249 | A |
@@ -265,41 +251,53 @@ A | @@ -265,41 +251,53 @@ A | ||
265 | A | 251 | A |
266 | ab | 252 | ab |
267 | ac | 253 | ac |
268 | -A | ||
269 | ac | 254 | ac |
270 | A | 255 | A |
271 | ac | 256 | ac |
272 | -A | ||
273 | ac | 257 | ac |
274 | A | 258 | A |
275 | A | 259 | A |
276 | -ab | ||
277 | A | 260 | A |
278 | A | 261 | A |
262 | +A | ||
263 | +A | ||
264 | +A | ||
265 | +A | ||
266 | +ac | ||
279 | ac | 267 | ac |
280 | ac | 268 | ac |
281 | A | 269 | A |
282 | A | 270 | A |
271 | +A | ||
283 | ac | 272 | ac |
284 | A | 273 | A |
285 | A | 274 | A |
286 | A | 275 | A |
287 | A | 276 | A |
288 | ac | 277 | ac |
278 | +ac | ||
279 | +A | ||
280 | +ab | ||
281 | +ab | ||
282 | +A | ||
289 | A | 283 | A |
290 | A | 284 | A |
285 | +A | ||
286 | +ab | ||
287 | +ab | ||
288 | +ac | ||
291 | ab | 289 | ab |
292 | ac | 290 | ac |
293 | A | 291 | A |
294 | A | 292 | A |
295 | -ac | ||
296 | A | 293 | A |
297 | A | 294 | A |
298 | A | 295 | A |
299 | ab | 296 | ab |
297 | +ab | ||
298 | +A | ||
300 | A | 299 | A |
301 | ac | 300 | ac |
302 | -ab | ||
303 | A | 301 | A |
304 | A | 302 | A |
305 | ac | 303 | ac |
@@ -307,12 +305,19 @@ A | @@ -307,12 +305,19 @@ A | ||
307 | A | 305 | A |
308 | A | 306 | A |
309 | A | 307 | A |
308 | +ab | ||
309 | +A | ||
310 | +ac | ||
311 | +A | ||
310 | A | 312 | A |
311 | A | 313 | A |
312 | ac | 314 | ac |
315 | +A | ||
313 | ac | 316 | ac |
314 | A | 317 | A |
318 | +ab | ||
315 | A | 319 | A |
320 | +ac | ||
316 | A | 321 | A |
317 | ac | 322 | ac |
318 | A | 323 | A |
@@ -325,30 +330,33 @@ A | @@ -325,30 +330,33 @@ A | ||
325 | A | 330 | A |
326 | A | 331 | A |
327 | A | 332 | A |
333 | +ab | ||
334 | +ac | ||
328 | A | 335 | A |
336 | +ac | ||
329 | A | 337 | A |
330 | A | 338 | A |
331 | A | 339 | A |
332 | A | 340 | A |
333 | A | 341 | A |
334 | A | 342 | A |
335 | -ac | ||
336 | A | 343 | A |
337 | -ac | ||
338 | A | 344 | A |
339 | ac | 345 | ac |
346 | +A | ||
340 | ac | 347 | ac |
341 | ac | 348 | ac |
342 | A | 349 | A |
343 | A | 350 | A |
351 | +A | ||
352 | +ac | ||
353 | +A | ||
344 | ac | 354 | ac |
345 | A | 355 | A |
346 | A | 356 | A |
347 | A | 357 | A |
348 | A | 358 | A |
349 | ac | 359 | ac |
350 | -ac | ||
351 | -A | ||
352 | A | 360 | A |
353 | A | 361 | A |
354 | A | 362 | A |
@@ -359,125 +367,110 @@ A | @@ -359,125 +367,110 @@ A | ||
359 | ab | 367 | ab |
360 | A | 368 | A |
361 | A | 369 | A |
362 | -ab | ||
363 | ac | 370 | ac |
364 | -ab | 371 | +A |
372 | +A | ||
365 | ac | 373 | ac |
374 | +ab | ||
366 | ac | 375 | ac |
367 | A | 376 | A |
368 | A | 377 | A |
369 | -ab | ||
370 | ac | 378 | ac |
371 | A | 379 | A |
372 | ac | 380 | ac |
373 | A | 381 | A |
382 | +ac | ||
374 | A | 383 | A |
375 | A | 384 | A |
376 | A | 385 | A |
377 | ac | 386 | ac |
378 | -ac | ||
379 | -A | ||
380 | A | 387 | A |
381 | ac | 388 | ac |
382 | A | 389 | A |
383 | A | 390 | A |
384 | A | 391 | A |
385 | A | 392 | A |
386 | -ab | ||
387 | -A | ||
388 | -A | ||
389 | -ac | ||
390 | ac | 393 | ac |
391 | A | 394 | A |
392 | A | 395 | A |
393 | A | 396 | A |
394 | -A | ||
395 | -A | ||
396 | ac | 397 | ac |
397 | A | 398 | A |
398 | A | 399 | A |
399 | A | 400 | A |
400 | A | 401 | A |
401 | A | 402 | A |
402 | -A | ||
403 | -A | ||
404 | ac | 403 | ac |
405 | A | 404 | A |
406 | A | 405 | A |
407 | ac | 406 | ac |
408 | -ac | ||
409 | -A | ||
410 | A | 407 | A |
411 | A | 408 | A |
412 | A | 409 | A |
413 | -ac | ||
414 | -ac | ||
415 | A | 410 | A |
416 | -ac | ||
417 | A | 411 | A |
418 | ac | 412 | ac |
419 | A | 413 | A |
420 | A | 414 | A |
421 | A | 415 | A |
422 | -A | ||
423 | ac | 416 | ac |
424 | -A | ||
425 | -A | ||
426 | -A | ||
427 | -A | ||
428 | ac | 417 | ac |
418 | +ab | ||
429 | A | 419 | A |
430 | A | 420 | A |
421 | +ac | ||
422 | +ac | ||
431 | A | 423 | A |
432 | A | 424 | A |
433 | A | 425 | A |
434 | A | 426 | A |
427 | +ac | ||
428 | +ab | ||
435 | A | 429 | A |
436 | A | 430 | A |
437 | A | 431 | A |
438 | -ac | ||
439 | A | 432 | A |
440 | A | 433 | A |
441 | A | 434 | A |
442 | A | 435 | A |
443 | A | 436 | A |
437 | +ab | ||
444 | A | 438 | A |
445 | A | 439 | A |
446 | ac | 440 | ac |
447 | ac | 441 | ac |
442 | +ac | ||
443 | +A | ||
448 | A | 444 | A |
449 | ac | 445 | ac |
450 | A | 446 | A |
451 | A | 447 | A |
452 | A | 448 | A |
453 | A | 449 | A |
454 | -ac | ||
455 | A | 450 | A |
456 | ac | 451 | ac |
457 | A | 452 | A |
458 | ac | 453 | ac |
454 | +ab | ||
459 | A | 455 | A |
460 | A | 456 | A |
461 | A | 457 | A |
462 | A | 458 | A |
463 | -ab | ||
464 | A | 459 | A |
465 | -ac | ||
466 | A | 460 | A |
467 | A | 461 | A |
468 | -ab | ||
469 | A | 462 | A |
470 | -ac | ||
471 | A | 463 | A |
472 | ac | 464 | ac |
473 | ac | 465 | ac |
474 | -ac | ||
475 | A | 466 | A |
476 | A | 467 | A |
477 | A | 468 | A |
478 | A | 469 | A |
479 | A | 470 | A |
480 | A | 471 | A |
472 | +ab | ||
473 | +ab | ||
481 | A | 474 | A |
482 | A | 475 | A |
483 | A | 476 | A |
@@ -487,9 +480,6 @@ A | @@ -487,9 +480,6 @@ A | ||
487 | A | 480 | A |
488 | A | 481 | A |
489 | A | 482 | A |
490 | -ac | ||
491 | -ab | ||
492 | -ab | ||
493 | A | 483 | A |
494 | A | 484 | A |
495 | A | 485 | A |
@@ -500,31 +490,37 @@ ac | @@ -500,31 +490,37 @@ ac | ||
500 | A | 490 | A |
501 | A | 491 | A |
502 | A | 492 | A |
493 | +ac | ||
503 | A | 494 | A |
504 | A | 495 | A |
505 | A | 496 | A |
497 | +ac | ||
498 | +ac | ||
506 | A | 499 | A |
500 | +ab | ||
507 | A | 501 | A |
508 | A | 502 | A |
509 | A | 503 | A |
510 | -A | ||
511 | -ab | ||
512 | -A | ||
513 | ac | 504 | ac |
514 | A | 505 | A |
506 | +ac | ||
515 | A | 507 | A |
516 | A | 508 | A |
517 | A | 509 | A |
518 | A | 510 | A |
519 | A | 511 | A |
512 | +ac | ||
520 | A | 513 | A |
514 | +ab | ||
521 | A | 515 | A |
522 | ac | 516 | ac |
523 | A | 517 | A |
524 | A | 518 | A |
525 | A | 519 | A |
526 | A | 520 | A |
521 | +ac | ||
527 | A | 522 | A |
523 | +ac | ||
528 | A | 524 | A |
529 | A | 525 | A |
530 | ac | 526 | ac |
@@ -532,15 +528,16 @@ A | @@ -532,15 +528,16 @@ A | ||
532 | A | 528 | A |
533 | A | 529 | A |
534 | A | 530 | A |
531 | +ab | ||
535 | ac | 532 | ac |
536 | A | 533 | A |
537 | ac | 534 | ac |
538 | -ac | ||
539 | -A | ||
540 | A | 535 | A |
541 | A | 536 | A |
542 | A | 537 | A |
538 | +ac | ||
543 | A | 539 | A |
540 | +ac | ||
544 | A | 541 | A |
545 | A | 542 | A |
546 | A | 543 | A |
@@ -548,21 +545,16 @@ A | @@ -548,21 +545,16 @@ A | ||
548 | ab | 545 | ab |
549 | A | 546 | A |
550 | A | 547 | A |
551 | -ab | ||
552 | A | 548 | A |
553 | -ac | ||
554 | A | 549 | A |
550 | +ac | ||
551 | +ac | ||
555 | A | 552 | A |
556 | A | 553 | A |
557 | -ab | ||
558 | A | 554 | A |
559 | -ac | ||
560 | -ab | ||
561 | A | 555 | A |
562 | A | 556 | A |
563 | -ac | ||
564 | A | 557 | A |
565 | -ab | ||
566 | A | 558 | A |
567 | ac | 559 | ac |
568 | A | 560 | A |
@@ -570,11 +562,11 @@ A | @@ -570,11 +562,11 @@ A | ||
570 | A | 562 | A |
571 | A | 563 | A |
572 | A | 564 | A |
573 | -ac | ||
574 | A | 565 | A |
575 | -ac | ||
576 | ab | 566 | ab |
577 | ac | 567 | ac |
568 | +ac | ||
569 | +A | ||
578 | A | 570 | A |
579 | A | 571 | A |
580 | A | 572 | A |
@@ -584,74 +576,68 @@ A | @@ -584,74 +576,68 @@ A | ||
584 | ac | 576 | ac |
585 | A | 577 | A |
586 | ac | 578 | ac |
587 | -ab | ||
588 | A | 579 | A |
589 | -ab | ||
590 | -ac | ||
591 | A | 580 | A |
592 | ac | 581 | ac |
593 | ac | 582 | ac |
594 | ac | 583 | ac |
595 | A | 584 | A |
596 | -A | ||
597 | -ab | ||
598 | -A | ||
599 | -ab | ||
600 | -A | ||
601 | -A | ||
602 | ac | 585 | ac |
603 | A | 586 | A |
604 | ac | 587 | ac |
605 | A | 588 | A |
589 | +A | ||
606 | ac | 590 | ac |
607 | A | 591 | A |
608 | A | 592 | A |
593 | +ac | ||
609 | A | 594 | A |
610 | A | 595 | A |
596 | +ac | ||
611 | A | 597 | A |
612 | A | 598 | A |
613 | A | 599 | A |
614 | ac | 600 | ac |
615 | A | 601 | A |
602 | +ac | ||
616 | A | 603 | A |
617 | ac | 604 | ac |
618 | ac | 605 | ac |
606 | +A | ||
619 | ab | 607 | ab |
620 | A | 608 | A |
621 | A | 609 | A |
622 | A | 610 | A |
623 | A | 611 | A |
624 | ac | 612 | ac |
625 | -ac | ||
626 | A | 613 | A |
627 | A | 614 | A |
628 | A | 615 | A |
629 | A | 616 | A |
630 | -ab | ||
631 | -A | ||
632 | A | 617 | A |
618 | +ac | ||
633 | A | 619 | A |
634 | A | 620 | A |
635 | A | 621 | A |
636 | A | 622 | A |
637 | A | 623 | A |
638 | -ac | ||
639 | -ac | ||
640 | A | 624 | A |
625 | +ab | ||
641 | A | 626 | A |
642 | A | 627 | A |
643 | A | 628 | A |
629 | +ac | ||
644 | A | 630 | A |
645 | A | 631 | A |
646 | A | 632 | A |
633 | +ac | ||
647 | A | 634 | A |
648 | -ab | ||
649 | A | 635 | A |
650 | ac | 636 | ac |
651 | A | 637 | A |
652 | A | 638 | A |
653 | A | 639 | A |
654 | -ac | 640 | +A |
655 | A | 641 | A |
656 | ac | 642 | ac |
657 | ac | 643 | ac |
@@ -661,9 +647,6 @@ A | @@ -661,9 +647,6 @@ A | ||
661 | A | 647 | A |
662 | A | 648 | A |
663 | A | 649 | A |
664 | -ab | ||
665 | -ac | ||
666 | -ac | ||
667 | A | 650 | A |
668 | A | 651 | A |
669 | A | 652 | A |
@@ -671,13 +654,19 @@ A | @@ -671,13 +654,19 @@ A | ||
671 | A | 654 | A |
672 | A | 655 | A |
673 | A | 656 | A |
674 | -ab | 657 | +ac |
658 | +A | ||
659 | +A | ||
660 | +A | ||
661 | +A | ||
675 | A | 662 | A |
676 | A | 663 | A |
677 | ac | 664 | ac |
678 | -ac | ||
679 | A | 665 | A |
680 | A | 666 | A |
667 | +A | ||
668 | +ab | ||
669 | +ac | ||
681 | ac | 670 | ac |
682 | A | 671 | A |
683 | A | 672 | A |
@@ -689,14 +678,15 @@ ac | @@ -689,14 +678,15 @@ ac | ||
689 | A | 678 | A |
690 | A | 679 | A |
691 | ac | 680 | ac |
681 | +ac | ||
692 | A | 682 | A |
693 | A | 683 | A |
684 | +ac | ||
694 | A | 685 | A |
695 | -ab | ||
696 | A | 686 | A |
697 | -ab | ||
698 | A | 687 | A |
699 | A | 688 | A |
689 | +ac | ||
700 | A | 690 | A |
701 | A | 691 | A |
702 | A | 692 | A |
@@ -705,6 +695,10 @@ A | @@ -705,6 +695,10 @@ A | ||
705 | ac | 695 | ac |
706 | A | 696 | A |
707 | A | 697 | A |
698 | +ac | ||
699 | +ac | ||
700 | +A | ||
701 | +A | ||
708 | A | 702 | A |
709 | A | 703 | A |
710 | A | 704 | A |
@@ -712,27 +706,21 @@ A | @@ -712,27 +706,21 @@ A | ||
712 | A | 706 | A |
713 | A | 707 | A |
714 | A | 708 | A |
715 | -ac | ||
716 | A | 709 | A |
717 | -ac | ||
718 | A | 710 | A |
719 | A | 711 | A |
720 | -ac | ||
721 | -ac | ||
722 | ac | 712 | ac |
723 | A | 713 | A |
724 | A | 714 | A |
725 | A | 715 | A |
726 | -ac | ||
727 | A | 716 | A |
728 | ac | 717 | ac |
729 | A | 718 | A |
730 | A | 719 | A |
731 | A | 720 | A |
732 | A | 721 | A |
733 | -ab | ||
734 | -ac | ||
735 | -ac | 722 | +A |
723 | +A | ||
736 | ac | 724 | ac |
737 | A | 725 | A |
738 | A | 726 | A |
@@ -740,19 +728,24 @@ A | @@ -740,19 +728,24 @@ A | ||
740 | A | 728 | A |
741 | A | 729 | A |
742 | A | 730 | A |
731 | +ac | ||
732 | +A | ||
733 | +A | ||
734 | +ab | ||
735 | +A | ||
743 | A | 736 | A |
744 | A | 737 | A |
745 | ac | 738 | ac |
746 | ac | 739 | ac |
747 | A | 740 | A |
748 | -A | ||
749 | ac | 741 | ac |
750 | A | 742 | A |
751 | A | 743 | A |
752 | A | 744 | A |
753 | -ab | 745 | +A |
754 | A | 746 | A |
755 | ac | 747 | ac |
748 | +ac | ||
756 | A | 749 | A |
757 | ac | 750 | ac |
758 | A | 751 | A |
@@ -763,6 +756,8 @@ A | @@ -763,6 +756,8 @@ A | ||
763 | A | 756 | A |
764 | A | 757 | A |
765 | ac | 758 | ac |
759 | +ac | ||
760 | +A | ||
766 | A | 761 | A |
767 | A | 762 | A |
768 | A | 763 | A |
@@ -770,34 +765,37 @@ A | @@ -770,34 +765,37 @@ A | ||
770 | ab | 765 | ab |
771 | ab | 766 | ab |
772 | A | 767 | A |
773 | -ac | ||
774 | A | 768 | A |
775 | A | 769 | A |
776 | A | 770 | A |
777 | A | 771 | A |
778 | A | 772 | A |
773 | +ab | ||
779 | A | 774 | A |
780 | A | 775 | A |
776 | +ac | ||
777 | +ac | ||
781 | A | 778 | A |
782 | A | 779 | A |
783 | -ac | ||
784 | A | 780 | A |
785 | A | 781 | A |
786 | ac | 782 | ac |
787 | A | 783 | A |
788 | A | 784 | A |
789 | A | 785 | A |
790 | -ac | ||
791 | -A | 786 | +ab |
792 | A | 787 | A |
793 | ac | 788 | ac |
794 | ac | 789 | ac |
795 | A | 790 | A |
796 | -ac | ||
797 | A | 791 | A |
798 | A | 792 | A |
793 | +ab | ||
794 | +ac | ||
795 | +ac | ||
799 | A | 796 | A |
800 | A | 797 | A |
798 | +ac | ||
801 | A | 799 | A |
802 | A | 800 | A |
803 | A | 801 | A |
@@ -808,28 +806,26 @@ A | @@ -808,28 +806,26 @@ A | ||
808 | A | 806 | A |
809 | A | 807 | A |
810 | A | 808 | A |
809 | +ac | ||
810 | +ab | ||
811 | A | 811 | A |
812 | A | 812 | A |
813 | A | 813 | A |
814 | +ac | ||
814 | A | 815 | A |
815 | A | 816 | A |
816 | -ac | ||
817 | A | 817 | A |
818 | A | 818 | A |
819 | A | 819 | A |
820 | ac | 820 | ac |
821 | -ac | 821 | +ab |
822 | +A | ||
822 | A | 823 | A |
823 | A | 824 | A |
824 | -ac | ||
825 | A | 825 | A |
826 | -ab | ||
827 | A | 826 | A |
828 | -ac | ||
829 | A | 827 | A |
830 | A | 828 | A |
831 | -ac | ||
832 | -ac | ||
833 | A | 829 | A |
834 | A | 830 | A |
835 | ab | 831 | ab |
@@ -837,65 +833,57 @@ A | @@ -837,65 +833,57 @@ A | ||
837 | A | 833 | A |
838 | A | 834 | A |
839 | A | 835 | A |
840 | -ac | ||
841 | A | 836 | A |
842 | -ac | ||
843 | -ac | ||
844 | A | 837 | A |
845 | A | 838 | A |
846 | -ab | ||
847 | A | 839 | A |
848 | A | 840 | A |
849 | ac | 841 | ac |
850 | A | 842 | A |
851 | A | 843 | A |
852 | A | 844 | A |
845 | +A | ||
846 | +A | ||
853 | ac | 847 | ac |
854 | A | 848 | A |
855 | A | 849 | A |
856 | A | 850 | A |
857 | A | 851 | A |
858 | A | 852 | A |
853 | +ac | ||
859 | A | 854 | A |
860 | A | 855 | A |
861 | A | 856 | A |
862 | A | 857 | A |
863 | ac | 858 | ac |
859 | +ab | ||
864 | A | 860 | A |
865 | A | 861 | A |
862 | +ac | ||
866 | A | 863 | A |
867 | A | 864 | A |
868 | -ac | ||
869 | A | 865 | A |
870 | A | 866 | A |
871 | ab | 867 | ab |
872 | -ab | ||
873 | -ac | ||
874 | -A | ||
875 | A | 868 | A |
876 | ac | 869 | ac |
877 | A | 870 | A |
878 | A | 871 | A |
879 | ac | 872 | ac |
880 | -ac | ||
881 | A | 873 | A |
882 | -ac | ||
883 | A | 874 | A |
884 | A | 875 | A |
885 | -ac | ||
886 | ab | 876 | ab |
887 | A | 877 | A |
878 | +ac | ||
879 | +A | ||
888 | A | 880 | A |
889 | A | 881 | A |
890 | -ac | ||
891 | -ac | ||
892 | -ac | ||
893 | A | 882 | A |
883 | +ab | ||
894 | A | 884 | A |
895 | A | 885 | A |
896 | ac | 886 | ac |
897 | -ac | ||
898 | -ac | ||
899 | A | 887 | A |
900 | A | 888 | A |
901 | A | 889 | A |
@@ -908,62 +896,68 @@ A | @@ -908,62 +896,68 @@ A | ||
908 | A | 896 | A |
909 | A | 897 | A |
910 | A | 898 | A |
911 | -ac | 899 | +ab |
912 | A | 900 | A |
901 | +ab | ||
913 | ac | 902 | ac |
914 | A | 903 | A |
904 | +ab | ||
915 | A | 905 | A |
916 | A | 906 | A |
917 | ac | 907 | ac |
918 | A | 908 | A |
919 | -A | 909 | +ac |
920 | A | 910 | A |
921 | ac | 911 | ac |
912 | +ac | ||
922 | A | 913 | A |
923 | A | 914 | A |
924 | A | 915 | A |
925 | -ac | 916 | +ab |
926 | A | 917 | A |
927 | A | 918 | A |
928 | A | 919 | A |
929 | ac | 920 | ac |
930 | -ac | ||
931 | -ac | ||
932 | -ab | ||
933 | A | 921 | A |
934 | -ac | 922 | +A |
923 | +A | ||
935 | A | 924 | A |
936 | A | 925 | A |
937 | A | 926 | A |
938 | A | 927 | A |
939 | A | 928 | A |
940 | ac | 929 | ac |
941 | -ab | ||
942 | A | 930 | A |
943 | A | 931 | A |
932 | +ac | ||
944 | A | 933 | A |
934 | +ac | ||
945 | A | 935 | A |
946 | ac | 936 | ac |
947 | A | 937 | A |
948 | A | 938 | A |
949 | ac | 939 | ac |
950 | A | 940 | A |
951 | -ab | ||
952 | A | 941 | A |
953 | A | 942 | A |
943 | +A | ||
944 | +ab | ||
945 | +A | ||
954 | ac | 946 | ac |
955 | A | 947 | A |
956 | A | 948 | A |
949 | +ab | ||
950 | +A | ||
951 | +A | ||
957 | A | 952 | A |
958 | A | 953 | A |
959 | ac | 954 | ac |
960 | A | 955 | A |
961 | A | 956 | A |
962 | -ac | ||
963 | A | 957 | A |
964 | A | 958 | A |
965 | ac | 959 | ac |
966 | -ac | 960 | +A |
967 | ac | 961 | ac |
968 | A | 962 | A |
969 | A | 963 | A |
@@ -971,11 +965,14 @@ A | @@ -971,11 +965,14 @@ A | ||
971 | A | 965 | A |
972 | A | 966 | A |
973 | A | 967 | A |
968 | +ab | ||
969 | +A | ||
974 | A | 970 | A |
975 | A | 971 | A |
976 | ac | 972 | ac |
977 | ac | 973 | ac |
978 | ac | 974 | ac |
975 | +A | ||
979 | ac | 976 | ac |
980 | A | 977 | A |
981 | A | 978 | A |
@@ -983,19 +980,22 @@ A | @@ -983,19 +980,22 @@ A | ||
983 | A | 980 | A |
984 | A | 981 | A |
985 | ac | 982 | ac |
983 | +ac | ||
986 | A | 984 | A |
987 | A | 985 | A |
986 | +ac | ||
987 | +A | ||
988 | +ac | ||
988 | A | 989 | A |
989 | A | 990 | A |
990 | A | 991 | A |
991 | -ac | ||
992 | A | 992 | A |
993 | -ac | ||
994 | A | 993 | A |
995 | -ac | ||
996 | A | 994 | A |
997 | A | 995 | A |
998 | A | 996 | A |
999 | A | 997 | A |
998 | +ac | ||
999 | +A | ||
1000 | A | 1000 | A |
1001 | A | 1001 | A |
sample_analysis.jl
@@ -63,11 +63,13 @@ core_of = Dict{String,String}( | @@ -63,11 +63,13 @@ core_of = Dict{String,String}( | ||
63 | "Δ" => "A,ab,ac", | 63 | "Δ" => "A,ab,ac", |
64 | ) | 64 | ) |
65 | 65 | ||
66 | -α = 0.1 | 66 | + |
67 | +α = 0.0 | ||
67 | β = 0.3 | 68 | β = 0.3 |
68 | -γ = 0.8 | 69 | +γ = 0.2 |
69 | 70 | ||
70 | -data = CSV.read("model_sample-[$α;$β;$γ].csv", DataFrame) | 71 | + |
72 | +data = CSV.read("data/model_sample-[$α;$β;$γ].csv", DataFrame) | ||
71 | transform!(data, :event => ByRow(e -> get(core_of, e, "z")) => :core) | 73 | transform!(data, :event => ByRow(e -> get(core_of, e, "z")) => :core) |
72 | groups = groupby(data, :core) | 74 | groups = groupby(data, :core) |
73 | totals = combine(groups, :core => length => :count) | 75 | totals = combine(groups, :core => length => :count) |
sampling.jl
@@ -74,9 +74,9 @@ consistent = filter(is_consistent, omega) | @@ -74,9 +74,9 @@ consistent = filter(is_consistent, omega) | ||
74 | consistent = join.(consistent) | 74 | consistent = join.(consistent) |
75 | 75 | ||
76 | 76 | ||
77 | -α = 0.1 | 77 | +α = 0.0 |
78 | β = 0.3 | 78 | β = 0.3 |
79 | -γ = 0.5 | 79 | +γ = 0.2 |
80 | 80 | ||
81 | events = model_sample(1000; | 81 | events = model_sample(1000; |
82 | α = α, | 82 | α = α, |
@@ -85,7 +85,7 @@ events = model_sample(1000; | @@ -85,7 +85,7 @@ events = model_sample(1000; | ||
85 | 85 | ||
86 | println( events ) | 86 | println( events ) |
87 | 87 | ||
88 | -open("model_sample-[$α;$β;$γ].csv", "w") do io | 88 | +open("data/model_sample-[$α;$β;$γ].csv", "w") do io |
89 | writedlm(io, [ "event" ]) | 89 | writedlm(io, [ "event" ]) |
90 | writedlm(io, events) | 90 | writedlm(io, events) |
91 | end | 91 | end |
92 | \ No newline at end of file | 92 | \ No newline at end of file |