mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 12:08:05 +00:00
style patterns
This commit is contained in:
@@ -247,4 +247,4 @@ public class RmseTests
|
||||
// All errors are 5, MSE = 25, RMSE = 5
|
||||
Assert.Equal(5.0, results.Last.Value, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,10 @@ public sealed class Rmse : BiInputIndicatorBase
|
||||
ValidateBatchInputs(actual, predicted, output, period);
|
||||
|
||||
int len = actual.Length;
|
||||
if (len == 0) return;
|
||||
if (len == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const int StackAllocThreshold = 256;
|
||||
Span<double> sqErrors = len <= StackAllocThreshold
|
||||
|
||||
Reference in New Issue
Block a user