lpsvd#

torchspin.lpsvd(data, time, method='ss', order='mdl')[source]#

Linear Prediction SVD.

Parameters:
  • data (ndarray) – Time-domain signal (1-D vector).

  • time (ndarray) – Corresponding time vector (same length as data).

  • method (str) – Algorithm: 'kt', 'ss' (default), or 'tls'.

  • order (int | str) – Number of sinusoidal components, or 'mdl'/'aic' for automatic estimation.

Returns:

  • y – Predicted signal (same shape as data).

  • params – LPSVDResult with estimated damping, frequency, amplitude, and phase arrays.

Return type:

tuple[ndarray, LPSVDResult]