docs: update category index files and fix indicator implementations (#58)

This commit is contained in:
Miha Kralj
2026-01-19 18:25:48 -08:00
committed by GitHub
parent e966000d48
commit b2c1787782
29 changed files with 566 additions and 1667 deletions
+3 -10
View File
@@ -92,15 +92,8 @@ public sealed class Normalize : AbstractBase
var (min, max) = FindMinMax(_buffer.GetSpan());
double range = max - min;
if (range > 0)
{
result = (value - min) / range;
}
else
{
// Flat range: return 0.5 as neutral
result = 0.5;
}
// Flat range: return 0.5 as neutral
result = range > 0 ? (value - min) / range : 0.5;
_state = new State(result, min, max);
}
@@ -209,4 +202,4 @@ public sealed class Normalize : AbstractBase
_p_state = _state;
Last = default;
}
}
}