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
+4 -9
View File
@@ -179,14 +179,9 @@ public sealed class Atrn : AbstractBase
double normalized = minAtr < maxAtr ? (currentAtr - minAtr) / (maxAtr - minAtr) : 0.5;
// Update state
if (isNew)
{
_state = new State(input, true, tr, currentAtr);
}
else
{
_state = _state with { LastValidTr = tr, LastValidAtr = currentAtr };
}
_state = isNew
? new State(input, true, tr, currentAtr)
: _state with { LastValidTr = tr, LastValidAtr = currentAtr };
TValue result = new(input.Time, normalized);
Last = result;
@@ -315,4 +310,4 @@ public sealed class Atrn : AbstractBase
}
return min;
}
}
}