Skip to content

Commit d7be7ef

Browse files
committed
update
1 parent 4c7a3f7 commit d7be7ef

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

mi.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="UTF-8">
6-
<title>Iterative Belief Update with Individual Color Scaling</title>
6+
<title>Mutual Information Playground</title>
77
<!-- MathJax is included if needed elsewhere but not for numeric table updates -->
88
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
99
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
@@ -31,6 +31,7 @@
3131
#expressionTable {
3232
margin: 0 auto;
3333
border-collapse: collapse;
34+
font-size: 25px;
3435
}
3536

3637
#expressionTable th,
@@ -166,7 +167,7 @@
166167
********************************************************************/
167168
const gridRes = 50;
168169
const totalCells = gridRes * gridRes;
169-
const miBatchSize = 10;
170+
const miBatchSize = 20;
170171
let beliefMatrix = null;
171172
let beliefFieldData = null; // For visualization purposes only
172173
let hiddenTarget = { x: Math.random() * 0.6 + 0.2, y: Math.random() * 0.6 + 0.2 };
@@ -362,7 +363,7 @@
362363
ctx.lineTo(vertices[1].x, vertices[1].y);
363364
ctx.lineTo(vertices[2].x, vertices[2].y);
364365
ctx.closePath();
365-
ctx.fillStyle = "white";
366+
ctx.fillStyle = "red";
366367
ctx.fill();
367368
ctx.lineWidth = 3;
368369
ctx.strokeStyle = "black";
@@ -638,7 +639,7 @@
638639
const visImg = createVisualizationImage(rawDensity);
639640
drawScaledImageData(ctx, visImg, canvas.width, canvas.height);
640641
}
641-
drawTriangleMarker(ctx, 0.5, 0.5, 60, canvas.height);
642+
drawTriangleMarker(ctx, 0.5, 0.5, 30, canvas.height);
642643
// Tracker marker (always grey)
643644
const trackerX = dot.pos.x * canvas.width;
644645
const trackerY = canvas.height - (dot.pos.y * canvas.height);
@@ -658,7 +659,7 @@
658659
ctx.fillRect(0, 0, canvas.width, canvas.height);
659660
}
660661
if (showHiddenTarget) {
661-
drawTriangleMarker(ctx, hiddenTarget.x, hiddenTarget.y, 60, canvas.height);
662+
drawTriangleMarker(ctx, hiddenTarget.x, hiddenTarget.y, 30, canvas.height);
662663
}
663664
if (sampledDot) {
664665
const sampleX = sampledDot.x * canvas.width;

0 commit comments

Comments
 (0)