nibcq.compensation.ImpedanceTable ================================= .. py:class:: nibcq.compensation.ImpedanceTable(params: List[CompensationParameter]) Single-list table of CompensationParameter with fast lookups via bisect. - Stores one ascending-sorted list[CompensationParameter]. - Uses a frequency-view for O(log n) LOWER/UPPER/NEAREST/LINEAR lookups. .. py:method:: from_params(params: List[CompensationParameter]) -> ImpedanceTable :classmethod: Creates an ImpedanceTable from a list of CompensationParameters. .. py:method:: from_dict(d: Dict[float, complex]) -> ImpedanceTable :classmethod: Creates an ImpedanceTable from a dictionary of frequency/impedance pairs. .. py:method:: from_rows(rows: list[Dict[str, Any]]) -> ImpedanceTable :classmethod: Creates an ImpedanceTable from a list of rows. .. py:method:: from_file(path: str) -> ImpedanceTable :classmethod: Creates an ImpedanceTable from a JSON file. .. py:method:: value_at(f: float, mode: nibcq.enums.InterpolationMode = InterpolationMode.NEAREST) -> complex Returns the compensation value at the specified frequency. This depends on the specified interpolation mode.