Class: SPCore::RectangularWindow

Inherits:
Object
  • Object
show all
Defined in:
lib/spcore/windows/rectangular_window.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size) ⇒ RectangularWindow

Returns a new instance of RectangularWindow.



6
7
8
# File 'lib/spcore/windows/rectangular_window.rb', line 6

def initialize size
  @data = Array.new(size, 1.0)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/spcore/windows/rectangular_window.rb', line 5

def data
  @data
end