[CodeFactor] Apply fixes to commit 9697fac

This commit is contained in:
codefactor-io
2026-03-14 05:03:08 +00:00
parent 9697facfb4
commit e35ff7fa3f
164 changed files with 458 additions and 530 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ public sealed class Gauss : AbstractBase
}
_sigma = sigma;
KernelSize = (int)(2 * Math.Ceiling(3.0 * sigma) + 1);
KernelSize = (int)((2 * Math.Ceiling(3.0 * sigma)) + 1);
WarmupPeriod = KernelSize;
Name = $"Gauss({sigma:F2})";
_buffer = new RingBuffer(KernelSize);
@@ -241,7 +241,7 @@ public sealed class Gauss : AbstractBase
throw new ArgumentException("Source and output spans must be of equal length.", nameof(output));
}
int kernelSize = (int)(2 * Math.Ceiling(3.0 * sigma) + 1);
int kernelSize = (int)((2 * Math.Ceiling(3.0 * sigma)) + 1);
// Use stackalloc for small kernels, ArrayPool for large ones to avoid stack overflow
double[]? rented = null;