init
This commit is contained in:
18
DataPRO/FftSharp/Windows/Hamming.cs
Normal file
18
DataPRO/FftSharp/Windows/Hamming.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user