Skip to content

juangburgos/FitSumExponentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fit Sum of Exponentials

The files directory contains a collection of Python scripts that implement the method proposed in this stackexchange answer to fit data to a sum of exponentials with an arbitrary number of exponential terms.

This repo also contains a static jupyterlite website with a custom pyodide kernel and the PyArma Python module compiled for webassembly.

The website available at juangburgos.github.io/FitSumExponentials allows to run the Python scripts in an interactive Python environment that requires zero installation and no backend server, and it runs in almost all modern web browsers and devices.

Kudos to the jupyterlite, pyodide and PyArma guys for making this possible.

Old Matlab Code

Before using Python and PyArma for exponentials the fit method implementation, there was a Matlab version, which was was available in an interactive online environment provided by OctaveOnline. Sadly, OctaveOnline decided to delete all my saved and shared scripts without any notification, which motivated me to create this static wbesite.

The old Matlab scripts can be accessed in the matlab directory.


License

MIT license.

Only for the files in the files and matlab directories, the rest of the site files have licenses that belong to their own projects (jupyterlite, pyodide and PyArma).

Copyright (c) 2020 - forever Juan Gonzalez Burgos


Citing

To cite this algorithm please use:

@MISC {3808325,
    TITLE = {Fit sum of exponentials},
    AUTHOR = {Juan Gonzalez Burgos (https://math.stackexchange.com/users/605948/juan-gonzalez-burgos)},
    HOWPUBLISHED = {Mathematics Stack Exchange},
    NOTE = {URL:https://math.stackexchange.com/q/3808325 (version: 2020-08-31)},
    EPRINT = {https://math.stackexchange.com/q/3808325},
    URL = {https://math.stackexchange.com/q/3808325}
}

or

\bib\{3808325}{misc}{    
    title={Fit sum of exponentials},    
    author={Juan Gonzalez Burgos (https://math.stackexchange.com/users/605948/juan-gonzalez-burgos)},    
    note={URL: https://math.stackexchange.com/q/3808325 (version: 2020-08-31)},    
    eprint={https://math.stackexchange.com/q/3808325},    
    organization={Mathematics Stack Exchange}  
}