OxIonics / ionics_fits

Small python fitting library with an emphasis on Atomic Molecular and Optical Physics
Apache License 2.0
1 stars 0 forks source link

Add set of basic fit functions #7

Closed hartytp closed 1 year ago

hartytp commented 2 years ago

The following would be a good starting point and makes this library a superset of the useful code in oitg.fitting (let me know if I've missed anything):

hartytp commented 2 years ago

NB benchmarking on fitting

Fuzzing exponential...
success (took 0.4 s for 100 trails)
Fuzzing gaussian...
success (took 0.6 s for 100 trails)
Fuzzing polynomial...
success (took 0.2 s for 100 trails)
Fuzzing power...
success (took 0.5 s for 100 trails)
Fuzzing rabi_freq...
success (took 1.7 s for 100 trails)
Fuzzing rabi_time...
success (took 0.5 s for 100 trails)
Fuzzing rectangle...
success (took 0.2 s for 100 trails)
Fuzzing sinc...
success (took 1.1 s for 100 trails)
Fuzzing sinc2...
success (took 1.1 s for 100 trails)
Fuzzing sinusoid...
success (took 4.2 s for 100 trails)
Fuzzing triangle...
success (took 0.3 s for 100 trails)