Found this paper on taper microstrips https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9331565 using fft to calculate S11. Not sure if this is that straightforward to implement but for Z its quite straight forward a linear model.


Let me know if you want to implement this or need the full pdf or contribution.