Adapted example notebook 2
"cell_type": "markdown",
"metadata": {},
"source": [
- "**First attempt:** Perform the fit using 3 real poles and 4 complex-conjugate poles: (*Note*: In a previous version of this example, the order of the two attempts was reversed. Also see the [comment at the end](#comment).)"
+ "**First attempt:** Perform the fit using 4 real poles and 4 complex-conjugate poles: (*Note*: In a previous version of this example, the order of the two attempts was reversed. Also see the [comment at the end](#comment).)"
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "vf.vector_fit(n_poles_real=3, n_poles_cmplx=4)"
+ "vf.vector_fit(n_poles_real=4, n_poles_cmplx=4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "**Second attempt:** Maybe an even better fit without that large dc \"spike\" can be achieved, so let's try again. Unwanted spikes at frequencies outside the fitting band are often caused by unnecessary or badly configured poles. Let's increase the number of real starting poles to 4: (*Note*: One could also reduce the real poles and/or increase the complex-conjugate poles. Also see the [comment at the end](#comment).)"
+ "**Second attempt:** Maybe an even better fit without that large dc \"spike\" can be achieved, so let's try again. Unwanted spikes at frequencies outside the fitting band are often caused by unnecessary or badly configured poles. Predictions about the fitting quality outside the fitting band are somewhat speculative and are not exactly controllable without additional samples at those frequencies. Still, let's try to decrease the number of real starting poles to 3 and see if the dc spike is removed: (*Note*: One could also reduce the real poles and/or increase the complex-conjugate poles. Also see the [comment at the end](#comment).)"
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "vf.vector_fit(n_poles_real=4, n_poles_cmplx=4)\n",
+ "vf.vector_fit(n_poles_real=3, n_poles_cmplx=4)\n",
"vf.plot_convergence()"
]
},
