This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace FftSharp.Windows
{
public class Cosine : Window, IWindow
{
public override string Name => "Cosine";
public override string Description =>
"This window is simply a cosine function. It reaches zero on both sides and is similar to " +
"Blackman, Hamming, Hanning, and flat top windows, but probably should not be used in practice.";
protected override double windowValue(int index, int size)
{
return Math.Sin(index * Math.PI / (size - 1));
}
}
}