Constrained tuning: Difference between revisions
→Simple Fast Closed-Form Algorithm: formatting again |
→Interpolating TE/WE: typo in title |
||
| Line 272: | Line 272: | ||
print("CWE Tuning map: " + str(T_CWE)) | print("CWE Tuning map: " + str(T_CWE)) | ||
=== Interpolating TE/ | === Interpolating TE/CTE === | ||
We can also interpolate between the TE and CTE tunings, if we want. To do this, we modify the TE tuning so that the weighting of the 2's coefficient is very large. As the weighting goes to infinity, we get the CTE tuning. Thus, we can set it to some sufficiently large number, so that we get whatever numerical precision we want, and compute the result in closed-form using the pseudoinverse. Without comments, docstrings, etc, the calculation is only about five lines of python code: | We can also interpolate between the TE and CTE tunings, if we want. To do this, we modify the TE tuning so that the weighting of the 2's coefficient is very large. As the weighting goes to infinity, we get the CTE tuning. Thus, we can set it to some sufficiently large number, so that we get whatever numerical precision we want, and compute the result in closed-form using the pseudoinverse. Without comments, docstrings, etc, the calculation is only about five lines of python code: | ||