mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 04:28:04 +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:
@@ -232,19 +232,6 @@ public sealed class Cfitz : AbstractBase
|
||||
return weightedSum;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the ideal band-pass weight B_j for lag j.
|
||||
/// </summary>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private static double IdealWeight(double wl, double wh, int j)
|
||||
{
|
||||
if (j == 0)
|
||||
{
|
||||
return (wh - wl) / Math.PI;
|
||||
}
|
||||
return (Math.Sin(j * wh) - Math.Sin(j * wl)) / (Math.PI * j);
|
||||
}
|
||||
|
||||
public static TSeries Batch(TSeries source, int pLow = 6, int pHigh = 32)
|
||||
{
|
||||
double[] input = source.Values.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user