Class: SPCore::RectangularWindow
- Inherits:
-
Object
- Object
- SPCore::RectangularWindow
- Defined in:
- lib/spcore/windows/rectangular_window.rb
Overview
For more info, see en.wikipedia.org/wiki/Window_function#Rectangular_window.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(size) ⇒ RectangularWindow
constructor
A new instance of RectangularWindow.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/spcore/windows/rectangular_window.rb', line 5 def data @data end |