Skip to content

Instantly share code, notes, and snippets.

Keybase proof

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:

@mounte
mounte / curvefit_ex.ipynb
Created December 5, 2014 13:45
Curve fit example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mounte
mounte / curve_fit_ex.py
Created December 5, 2014 13:42
Curve fit demonstration
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)
@mounte
mounte / filer_xyz.ipynb
Created August 23, 2013 11:12
Filer_coords
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mounte
mounte / Filer.ipynb
Last active December 21, 2015 14:09
Filer - word splitter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.