Sha256: 7068f25364d08a826cd75d05b781ffdbb3545cf02f604780da9327f987ba5556

Contents?: true

Size: 294 Bytes

Versions: 9

Compression:

Stored size: 294 Bytes

Contents

module SPCore
# Produces a rectangular window (all ones) of a given size (number of samples).
# For more info, see https://en.wikipedia.org/wiki/Window_function#Rectangular_window.
class RectangularWindow
  attr_reader :data
  def initialize size
    @data = Array.new(size, 1.0)
  end
end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spcore-0.2.1 lib/spcore/windows/rectangular_window.rb
spcore-0.2.0 lib/spcore/windows/rectangular_window.rb
spcore-0.1.9 lib/spcore/windows/rectangular_window.rb
spcore-0.1.8 lib/spcore/windows/rectangular_window.rb
spcore-0.1.7 lib/spcore/windows/rectangular_window.rb
spcore-0.1.6 lib/spcore/windows/rectangular_window.rb
spcore-0.1.5 lib/spcore/windows/rectangular_window.rb
spcore-0.1.4 lib/spcore/windows/rectangular_window.rb
spcore-0.1.3 lib/spcore/windows/rectangular_window.rb