skrf.frequency.Frequency.center_idx

Frequency.center_idx

closes idx of f to the center frequency