Class: SpectrumAnalyzer::WindowFunctions

Inherits:
Object
  • Object
show all
Defined in:
lib/spectrum-analyzer/clients/window_functions.rb

Instance Method Summary collapse

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

#windowsObject



7
8
9
10
11
12
# File 'lib/spectrum-analyzer/clients/window_functions.rb', line 7

def windows()
{
    :hanning => hanning(),
    :rectangle => rectangle()
}
end