|
3 | 3 |
|
4 | 4 | <head> |
5 | 5 | <meta charset="UTF-8"> |
6 | | - <title>Iterative Belief Update with Individual Color Scaling</title> |
| 6 | + <title>Mutual Information Playground</title> |
7 | 7 | <!-- MathJax is included if needed elsewhere but not for numeric table updates --> |
8 | 8 | <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> |
9 | 9 | <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> |
|
31 | 31 | #expressionTable { |
32 | 32 | margin: 0 auto; |
33 | 33 | border-collapse: collapse; |
| 34 | + font-size: 25px; |
34 | 35 | } |
35 | 36 |
|
36 | 37 | #expressionTable th, |
|
166 | 167 | ********************************************************************/ |
167 | 168 | const gridRes = 50; |
168 | 169 | const totalCells = gridRes * gridRes; |
169 | | - const miBatchSize = 10; |
| 170 | + const miBatchSize = 20; |
170 | 171 | let beliefMatrix = null; |
171 | 172 | let beliefFieldData = null; // For visualization purposes only |
172 | 173 | let hiddenTarget = { x: Math.random() * 0.6 + 0.2, y: Math.random() * 0.6 + 0.2 }; |
|
362 | 363 | ctx.lineTo(vertices[1].x, vertices[1].y); |
363 | 364 | ctx.lineTo(vertices[2].x, vertices[2].y); |
364 | 365 | ctx.closePath(); |
365 | | - ctx.fillStyle = "white"; |
| 366 | + ctx.fillStyle = "red"; |
366 | 367 | ctx.fill(); |
367 | 368 | ctx.lineWidth = 3; |
368 | 369 | ctx.strokeStyle = "black"; |
|
638 | 639 | const visImg = createVisualizationImage(rawDensity); |
639 | 640 | drawScaledImageData(ctx, visImg, canvas.width, canvas.height); |
640 | 641 | } |
641 | | - drawTriangleMarker(ctx, 0.5, 0.5, 60, canvas.height); |
| 642 | + drawTriangleMarker(ctx, 0.5, 0.5, 30, canvas.height); |
642 | 643 | // Tracker marker (always grey) |
643 | 644 | const trackerX = dot.pos.x * canvas.width; |
644 | 645 | const trackerY = canvas.height - (dot.pos.y * canvas.height); |
|
658 | 659 | ctx.fillRect(0, 0, canvas.width, canvas.height); |
659 | 660 | } |
660 | 661 | if (showHiddenTarget) { |
661 | | - drawTriangleMarker(ctx, hiddenTarget.x, hiddenTarget.y, 60, canvas.height); |
| 662 | + drawTriangleMarker(ctx, hiddenTarget.x, hiddenTarget.y, 30, canvas.height); |
662 | 663 | } |
663 | 664 | if (sampledDot) { |
664 | 665 | const sampleX = sampledDot.x * canvas.width; |
|
0 commit comments