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; } } }