class SPCore::RectangularWindow
Produces a rectangular window (all ones) of a given size (number of samples). For more info, see en.wikipedia.org/wiki/Window_function#Rectangular_window.
Attributes
data[R]
Public Class Methods
new(size)
click to toggle source
# File lib/spcore/windows/rectangular_window.rb, line 6 def initialize size @data = Array.new(size, 1.0) end