mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 22:08:05 +00:00
chore: repo cleanup and code quality improvements
- Remove global.json (SDK pinning unnecessary) - Remove nuget.config, move MyGet source to .csproj RestoreAdditionalProjectSources - Gitignore ndepend/ entirely, move badges to docs/img/ - Update README.md and docs/ndepend.md badge paths - Add NDepend project property to QuanTAlib.slnx - Expand .editorconfig ReSharper/diagnostic suppressions - Use ArgumentOutOfRangeException instead of ArgumentException - Use discard _ for unused event sender parameters - Remove quantalib.code-workspace and sonar-suppressions.json - Add filter signature SVGs
This commit is contained in:
@@ -81,14 +81,11 @@ public sealed class Hann : AbstractBase
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private void GenerateWeights()
|
||||
{
|
||||
double coefSum = 0;
|
||||
double denom = Length - 1;
|
||||
|
||||
for (int i = 0; i < Length; i++)
|
||||
{
|
||||
double w = 0.5 * (1.0 - Math.Cos(2.0 * Math.PI * i / denom));
|
||||
_weights[i] = w;
|
||||
coefSum += w;
|
||||
_weights[i] = 0.5 * (1.0 - Math.Cos(2.0 * Math.PI * i / denom));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user