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:
Miha Kralj
2025-12-28 16:22:45 -08:00
parent 5c3b3fbab4
commit 14c5f21d9e
50 changed files with 111 additions and 77 deletions
@@ -58,4 +58,3 @@ public sealed class BesselValidationTests : IDisposable
_output.WriteLine("Bessel validated internally: Span vs TSeries are consistent.");
}
}
+12
View File
@@ -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];