Fix what I believe is a bug introduced while porting

This commit is contained in:
Pyrex 2023-09-17 19:31:37 -07:00
parent d2b5457ff3
commit 01d39ec58d

View File

@ -108,7 +108,7 @@ abstract class Model {
} }
int _nextUnobservedNode(Random random) { int _nextUnobservedNode(Random random) {
if (_heuristic == Heuristic.Entropy) { if (_heuristic == Heuristic.Scanline) {
for (var i = _observedSoFar; i < _wave.length; i++) { for (var i = _observedSoFar; i < _wave.length; i++) {
if (!_periodic && (i % cMx + cN > cMx || i ~/ cMx + cN > cMy)) { if (!_periodic && (i % cMx + cN > cMx || i ~/ cMx + cN > cMy)) {
continue; continue;