I have a set of data points and a curve that is already fitted to the data. How can I calculate the orthogonal distances?
I tried to use scipy.odr but I think it just gives me the best parameters for a fitting, and I want an array of the orthogonal distances.