mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 04:58:08 +00:00
feat: update Qodana configuration to disable failure conditions and improve build stability
refactor: enhance Bilateral and SMA indicators to handle edge cases and improve state management refactor: clean up whitespace and formatting in various test files for consistency
This commit is contained in:
@@ -113,6 +113,18 @@ public sealed class Bessel : AbstractBase, IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
// Handle case where all inputs are NaN
|
||||
if (_state.Count == 0)
|
||||
{
|
||||
_state.LastValidValue = double.NaN;
|
||||
_state.F1 = double.NaN;
|
||||
_state.F2 = double.NaN;
|
||||
_state.IsHot = false;
|
||||
Last = new TValue(DateTime.MinValue, double.NaN);
|
||||
_p_state = _state;
|
||||
return;
|
||||
}
|
||||
|
||||
for (; i < len; i++)
|
||||
{
|
||||
double val = source[i];
|
||||
|
||||
Reference in New Issue
Block a user