Class: SpectrumAnalyzer::Generator
- Inherits:
-
Object
- Object
- SpectrumAnalyzer::Generator
- Defined in:
- lib/spectrum-analyzer/clients/generator.rb
Instance Method Summary collapse
- #build_spectrum ⇒ Object
-
#initialize ⇒ Generator
constructor
A new instance of Generator.
- #quick_analyze ⇒ Object
- #set_file(file) ⇒ Object
Constructor Details
#initialize ⇒ Generator
Returns a new instance of Generator.
3 4 5 6 7 |
# File 'lib/spectrum-analyzer/clients/generator.rb', line 3 def initialize @config = SpectrumAnalyzer.configuration @file = build_file_info @spectrum = SpectrumAnalyzer.spectrum end |
Instance Method Details
#build_spectrum ⇒ Object
20 21 22 23 |
# File 'lib/spectrum-analyzer/clients/generator.rb', line 20 def build_spectrum generate_spectrum() analyze_spectrum() end |
#quick_analyze ⇒ Object
13 14 15 16 17 18 |
# File 'lib/spectrum-analyzer/clients/generator.rb', line 13 def quick_analyze #For each FFT window built #check for hit #return true if found #return false end |
#set_file(file) ⇒ Object
9 10 11 |
# File 'lib/spectrum-analyzer/clients/generator.rb', line 9 def set_file(file) @file = file end |