mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
clean code fixes
This commit is contained in:
@@ -30,14 +30,7 @@ public class Trima : AbstractBase
|
||||
|
||||
for (int i = 0; i < period; i++)
|
||||
{
|
||||
if (i < halfPeriod)
|
||||
{
|
||||
kernel[i] = i + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
kernel[i] = period - i;
|
||||
}
|
||||
kernel[i] = i < halfPeriod ? i + 1 : period - i;
|
||||
weightSum += kernel[i];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user