インパルスの試験の期待値を正規化した重みに合わせる

このコミットが含まれているのは:
routersys committed 2026-09-30 19:11:22 +09:00
1 親 71084fa9b9
コミット 7b314acfad
1ファイル変更
+1 -1
+1 -1
ファイルの表示
@@ -174,7 +174,7 @@ public sealed class WaveOpticsPipelineTests
expected += separable.Horizontal[term * separable.Size + column] * separable.Vertical[term * separable.Size + row];
}
var value = (int)Math.Round(Math.Clamp(expected, 0f, 1f) * 255d, MidpointRounding.ToEven);
var value = (int)Math.Round(Math.Clamp(expected / separable.Sum, 0d, 1d) * 255d, MidpointRounding.ToEven);
Assert.InRange(Alpha(rendering[y * 33 + x]), value - 1, value + 1);
}
}