mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 13:58:04 +00:00
style patterns
This commit is contained in:
@@ -52,7 +52,10 @@ public sealed class Mape : BiInputIndicatorBase
|
||||
ValidateBatchInputs(actual, predicted, output, period);
|
||||
|
||||
int len = actual.Length;
|
||||
if (len == 0) return;
|
||||
if (len == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const int StackAllocThreshold = 256;
|
||||
Span<double> percentErrors = len <= StackAllocThreshold
|
||||
@@ -62,4 +65,4 @@ public sealed class Mape : BiInputIndicatorBase
|
||||
ErrorHelpers.ComputePercentageErrors(actual, predicted, percentErrors, Epsilon);
|
||||
ErrorHelpers.ApplyRollingMean(percentErrors, output, period);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user