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 -13
View File
@@ -319,18 +319,8 @@ public sealed class Afirma : AbstractBase
for (int i = 0; i < count; i++)
{
double val;
if (i < n)
{
// Use fitted value: intercept + slope * i
val = intercept + slope * i;
}
else
{
// Use original value from buffer
// At lag i
val = _buffer[count - 1 - i];
}
// Use fitted value (intercept + slope * i) for i < n, otherwise use original from buffer
double val = i < n ? intercept + slope * i : _buffer[count - 1 - i];
lsSum += val;
lsCount++;
}
@@ -577,4 +567,4 @@ public sealed class Afirma : AbstractBase
}
base.Dispose(disposing);
}
}
}