edges_analysis.calibration.s11.AntennaS11.get_s11_model¶
- AntennaS11.get_s11_model(raw_s11: ndarray, *, freq: Quantity | None = None, n_terms: int | None = None, model_type: str | Type[Model] | None = None) ComplexMagPhaseModel | ComplexRealImagModel ¶
Generate a callable model for the S11.
This should closely match :method:`s11_correction`.
- Parameters:
raw_s11 – The raw s11 of the
- Returns:
callable – A function of one argument, f, which should be a frequency in the same units as self.freq.freq.
- Raises:
ValueError – If n_terms is not an integer, or not odd.