mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 12:08:05 +00:00
style patterns
This commit is contained in:
@@ -308,4 +308,4 @@ public class MseTests
|
||||
Assert.True(double.IsFinite(val), $"Expected finite value but got {val}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,10 @@ public sealed class Mse : BiInputIndicatorBase
|
||||
public static void Batch(ReadOnlySpan<double> actual, ReadOnlySpan<double> predicted, Span<double> output, int period)
|
||||
{
|
||||
ValidateBatchInputs(actual, predicted, output, period);
|
||||
if (actual.Length == 0) return;
|
||||
if (actual.Length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Allocate temporary buffer for squared errors
|
||||
const int StackAllocThreshold = 256;
|
||||
|
||||
Reference in New Issue
Block a user