Skip to content

Sinc Interpolation

Fabio Silva edited this page Aug 10, 2018 · 1 revision

The interp function in ts_library can be used to resample the input array "data" using the sinc interpolation method. The function's inputs are:

 data       - input array
 samples    - number of samples in the array
 old_dt     - dt used in the data array
 new_dt     - dt 
 debug      - flag to print detailed debug messages and generate a debug plot
 debug_plot - filename for the debug plot

The function has been tested for both array upsampling (e.g. old_dt = 0.01 to new_dt 0.005) and downsampling (e.g. old_dt=0.01 to new_dt=0.025). See sample plots below:

TS Process

Clone this wiki locally