mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -32,7 +32,7 @@ public sealed class Trima : AbstractBase
|
||||
|
||||
_period = period;
|
||||
int p1 = (period + 1) / 2;
|
||||
int p2 = period / 2 + 1;
|
||||
int p2 = (period / 2) + 1;
|
||||
|
||||
_sma1 = new Sma(p1);
|
||||
_sma2 = new Sma(p2);
|
||||
@@ -150,7 +150,7 @@ public sealed class Trima : AbstractBase
|
||||
}
|
||||
|
||||
int p1 = (period + 1) / 2;
|
||||
int p2 = period / 2 + 1;
|
||||
int p2 = (period / 2) + 1;
|
||||
|
||||
double[] tempArray = ArrayPool<double>.Shared.Rent(source.Length);
|
||||
Span<double> tempSpan = tempArray.AsSpan(0, source.Length);
|
||||
|
||||
Reference in New Issue
Block a user