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,18 @@
using System;
namespace FftSharp.Windows
{
public class Hamming : Window, IWindow
{
public override string Name => "Hamming";
public override string Description =>
"The Hamming window has a sinusoidal shape does NOT touch zero at the edges (unlike the similar Hanning window). " +
"It is similar to the Hanning window but its abrupt edges are designed to cancel the largest side lobe. " +
"It may be a good choice for low-quality (8-bit) auto where side lobes lie beyond the quantization noise floor.";
protected override double windowValue(int index, int size)
{
return 0.54 - 0.46 * Math.Cos(2 * Math.PI * index / size);
}
}
}