mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -386,7 +386,7 @@ public sealed class SakTests
|
||||
var output = new double[size];
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
src[i] = 100.0 + i * 0.01;
|
||||
src[i] = 100.0 + (i * 0.01);
|
||||
}
|
||||
|
||||
// Should not throw StackOverflowException
|
||||
|
||||
@@ -83,7 +83,7 @@ public sealed class SakValidationTests
|
||||
double c0 = alpha * alpha / 4.0;
|
||||
|
||||
double x0 = 10.0, x1 = 20.0, x2 = 30.0;
|
||||
double expectedY = c0 * (x0 + 2.0 * x1 + x2); // pure FIR formula
|
||||
double expectedY = c0 * (x0 + (2.0 * x1) + x2); // pure FIR formula
|
||||
|
||||
var sak = new Sak("Smooth", period: period);
|
||||
var now = DateTime.UtcNow;
|
||||
|
||||
Reference in New Issue
Block a user