pole_sweep ¤
Fixed-shape, vmapped screening of scattering-model pole budgets.
Classes:
| Name | Description |
|---|---|
PoleCountSweep | Errors and masks produced by :func: |
Functions:
| Name | Description |
|---|---|
contribution_masks | Build fixed-width masks that never split conjugate pole pairs. |
prune_poles_by_contribution | Return the strongest complete pole groups within |
vmap_pole_count_sweep | Refit and score many fixed-pole masks in one compiled |
PoleCountSweep dataclass ¤
PoleCountSweep(
requested_counts: Array,
retained_counts: Array,
masks: Array,
normalized_rmse: Array,
max_absolute_error: Array,
maximum_admittance_pole_real_part: Array | None = None,
transform_condition: Array | None = None,
)
Errors and masks produced by :func:vmap_pole_count_sweep.
Methods:
| Name | Description |
|---|---|
smallest_passing | Return the smallest screened pole count satisfying both limits. |
smallest_passing ¤
Return the smallest screened pole count satisfying both limits.
Source code in circulax/fitting/pole_sweep.py
contribution_masks ¤
contribution_masks(
model: VFModel, sample_points: ndarray, pole_counts: Iterable[int]
) -> tuple[ndarray, ndarray]
Build fixed-width masks that never split conjugate pole pairs.
Source code in circulax/fitting/pole_sweep.py
prune_poles_by_contribution ¤
Return the strongest complete pole groups within max_poles.
Source code in circulax/fitting/pole_sweep.py
vmap_pole_count_sweep ¤
vmap_pole_count_sweep(
model: VFModel,
freqs: ndarray,
target_S: ndarray,
pole_counts: Iterable[int],
*,
asymp: int = 2,
z0: float = 50.0
) -> PoleCountSweep
Refit and score many fixed-pole masks in one compiled vmap.
Every candidate retains the maximum pole-array shape. Excluded poles keep their locations but have zero coefficient columns; constant and optional proportional terms remain active. The returned screening errors precede pole relocation, so shortlisted candidates should still be refined and validated after physically compacting their pole arrays.
Source code in circulax/fitting/pole_sweep.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | |