mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 03:28:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -54,7 +54,7 @@ public class HtPhasorTests
|
||||
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
phasor.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + Math.Sin(i * 0.1) * 5));
|
||||
phasor.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + (Math.Sin(i * 0.1) * 5)));
|
||||
}
|
||||
|
||||
Assert.True(double.IsFinite(phasor.Quadrature));
|
||||
@@ -126,7 +126,7 @@ public class HtPhasorTests
|
||||
|
||||
for (int i = 0; i < 50; i++)
|
||||
{
|
||||
source.Add(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + Math.Sin(i * 0.2) * 10));
|
||||
source.Add(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + (Math.Sin(i * 0.2) * 10)));
|
||||
}
|
||||
|
||||
Assert.True(phasor.IsHot);
|
||||
@@ -238,7 +238,7 @@ public class HtPhasorTests
|
||||
double[] data = new double[50];
|
||||
for (int i = 0; i < 50; i++)
|
||||
{
|
||||
data[i] = 100.0 + Math.Sin(i * 0.3) * 10;
|
||||
data[i] = 100.0 + (Math.Sin(i * 0.3) * 10);
|
||||
}
|
||||
|
||||
phasor1.Prime(data);
|
||||
|
||||
Reference in New Issue
Block a user