I hereby claim:
- I am mounte on github.
- I am mounte (https://keybase.io/mounte) on keybase.
- I have a public key ASAxvT8BdON9z7rLdumyU5uOD25a965IMaVDWWQKBO3D0wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def fit_curve(x, y, plot_res=True): | |
A = vstack((ones(100), ones(100)/x)).T | |
k = linalg.lstsq(A, y)[0] | |
print "Correct:", [a0, a1] | |
print "Estimated:", k | |
print "Error:", k-[a0, a1] | |
if plot_res: | |
figure() | |
figsize(13,6) |