I have a function $f_\theta$ that is generic. More particularly, it is the function that describes the conversion of pressure to altitude.
$$ y_i=\frac{\mathrm{T}_{0}}{\mathrm{~L}}\left(\left(\frac{x_i}{\mathrm{P}_{0}}\right)^{-\mathrm{L} \mathrm{R} / \mathrm{g}}-1\right) $$
The problem is that there are a lot of assumptions about these constants so I do not get accurate results. I am interested in finding $\mathrm{T_0}$ and $\mathrm{P_0}$, but if it is not so complicated to extend it for all parameters, then I would be interested in finding all parameters.
What I do have is $n$ pairs $(x_i,y_i)$ where $y_i = f_{\theta^{\star}}(x_i)$ where $\theta^\star$ are the true parameters that I need to find.
What is a method to find $\theta^\star$ programmatically with a unique solution?