Skip to content

Resample

Sambit Paul edited this page Dec 31, 2020 · 6 revisions

Resamples a signal to the provided number of samples using Fourier method.

The examples provided here use this signal:

signal

This signal has 20 datapoints; the objective is to increase the number of samples of this signal to 100 datapoints.

CODE
Resample rs = new Resample(this.signal, 100);
double[] resampled = rs.resampleSignal();

The following plot shows the output of resampling compared to the original signal.

signal

Clone this wiki locally