Recent Changes - Search:

edit SideBar

ScriptedSignalProcessingAccessorWithNashornImplementation

  • Started writing a dsp module located at ptolemy.actor.lib.jjs.modules.dsp

Prototyping FFT methods within a JS module

  • Prototyping the FFT/IFFT methods from the SignalProcessing static library. Main issue is that Nashorn cannot resolve which of the overloaded methods to call (e.g., FFTRealOut() has two versions with arguments of type Complex[] and double[] ) . Trying out some solutions documented here
    • Explicit type definition worked. For example, to get the real part of an fft of a signal, used:
   output = Java.type('ptolemy.math.SignalProcessing')["FFTRealOut(double[])"](data);
Edit - History - Print - Recent Changes - Search
Page last modified on May 28, 2015, at 10:48 PM