mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-15 09:08:04 +00:00
docs: update category index files and fix indicator implementations (#58)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user