Class: Vizcore::Analysis::FFTProcessor::RubyBackend Private

Inherits:
Object
  • Object
show all
Defined in:
lib/vizcore/analysis/fft_processor.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Pure-Ruby Cooley-Tukey FFT backend.

Instance Method Summary collapse

Instance Method Details

#transform(values) ⇒ Array<Complex>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • values (Array<Float>)

Returns:

  • (Array<Complex>)


142
143
144
# File 'lib/vizcore/analysis/fft_processor.rb', line 142

def transform(values)
  fft(values.map { |value| Complex(value, 0.0) })
end