pyyeti.srs.fftroll

pyyeti.srs.fftroll(sig, sr, ppc, frq)[source]

Increase sample rate using FFT for srs().

Parameters:
  • sig (ndarray) – The signal(s), time-steps x n.

  • sr (scalar) – Sample rate.

  • ppc (scalar) – Minimum points per cycle.

  • frq (scalar) – Highest frequency of the SDOF system.

Returns:

  • signew (ndarray) – The resampled version of sig that meets the ppc requirement.

  • srnew (scalar) – The new sample rate.

Notes

Because of the very poor performance of the SciPy FFT for signals of unfortunate lengths, if the number of time-steps is odd, the last point is truncated. This should be only temporary and hopefully not too harmful.