Files

17 lines
662 B
C#
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
namespace FftSharp.Windows
{
public class Rectangular : Window, IWindow
{
public override string Name => "Rectangular";
public override string Description =>
"The rectangular window (sometimes known as the boxcar or Dirichlet window) is the simplest window, " +
"equivalent to replacing all but N values of a data sequence by zeros, making it appear as though " +
"the waveform suddenly turns on and off. This window preserves transients at the start and end of the signal.";
protected override double windowValue(int index, int size)
{
return 1;
}
}
}