Class: SpectrumAnalyzer::WindowFunctions
- Inherits:
-
Object
- Object
- SpectrumAnalyzer::WindowFunctions
- Defined in:
- lib/spectrum-analyzer/clients/window_functions.rb
Instance Method Summary collapse
-
#initialize(window_size) ⇒ WindowFunctions
constructor
A new instance of WindowFunctions.
- #windows ⇒ Object
Constructor Details
#initialize(window_size) ⇒ WindowFunctions
Returns a new instance of WindowFunctions.
3 4 5 |
# File 'lib/spectrum-analyzer/clients/window_functions.rb', line 3 def initialize(window_size) @window_size = window_size end |
Instance Method Details
#windows ⇒ Object
7 8 9 10 11 12 |
# File 'lib/spectrum-analyzer/clients/window_functions.rb', line 7 def windows() { :hanning => hanning(), :rectangle => rectangle() } end |