skrf.vectorFitting.VectorFitting.get_spurious

static VectorFitting.get_spurious(poles, residues, n_freqs=101, gamma=0.03)[source]

Classifies fitted pole-residue pairs as spurious or not spurious. The implementation is based on the evaluation of band-limited energy norms (p=2) of the resonance curves of individual pole-residue pairs, as proposed in [1].

Parameters:
  • poles (ndarray, shape (N)) – Array of fitted poles

  • residues (ndarray, shape (M, N)) – Array of fitted residues

  • n_freqs (int, optional) – Number of frequencies for the evaluation. The frequency range is chosen automatically and the default 101 frequencies should be appropriate in most cases.

  • gamma (float, optional) – Sensitivity threshold for the classification. Typical values range from 0.01 to 0.05.

Returns:

Boolean array having the same shape as poles. True marks the respective pole as spurious.

Return type:

ndarray, bool, shape (M)

References