[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io
2024-11-03 23:03:24 +00:00
parent c84a5dd4df
commit e60cf47d3a
43 changed files with 141 additions and 141 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ public class Zlema : AbstractBase
private double CalculateErrorCorrection()
{
double lagValue = _buffer[System.Math.Max(0, _buffer.Count - 1 - _lag)];
return 2.0 * Input.Value - lagValue;
return (2.0 * Input.Value) - lagValue;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]