mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-15 17:18:05 +00:00
fixes
This commit is contained in:
@@ -96,7 +96,7 @@ public class Convolution : AbstractBase
|
||||
}
|
||||
|
||||
// Normalize the kernel or set equal weights if the sum is zero
|
||||
double normalizationFactor = (sum != 0) ? sum : _activeLength;
|
||||
double normalizationFactor = (sum >= double.Epsilon) ? sum : _activeLength;
|
||||
double invNormFactor = 1.0 / normalizationFactor;
|
||||
|
||||
for (int i = 0; i < _activeLength; i++)
|
||||
|
||||
Reference in New Issue
Block a user