Developed by Shivani Malvi & Satyajit Puhan Free for research & teaching · no sign-up · nothing to install
Curve Fit Bench
Benchmark

Tested where fitting tools fail.

Ten deliberately hard datasets from a live conference demo, then a thousand random complex spectra with known truth. A correct model gives a reduced χ² near 1 and a curve closer to the truth than the noise.

994 / 1000random complex spectra fitted within the noise (χ²/ν < 1.5); 964 below 1.25
999 / 1000fits closer to the true noiseless curve than the noise itself
1.0 smedian time to build the model; 90 % within 5 s

Ten hard datasets: best reduced χ²

Before and after adaptive decomposition, log scale. Hover a row for values.

BeforeNow

The same results as a table

Each dataset has σy; the noiseless truth was never shown to the fitter.

DatasetBeforeNow
Multi-scale resonance5.711.04
Two overlapping resonances5.430.96
Threshold cusp + oscillations8.211.18
Log-periodic power law2171.10
Fano interference36.91.13
Damped chirp4.680.93
Double sigmoid + dip4.040.97
Broad peak + narrow spike3.351.21
Rational crossover + ripple43.61.04
Hard composite5.071.05
Method

How the 1000 spectra were made

Each synthetic spectrum stacks 2 to 6 features — Lorentzian, Gaussian, Voigt and Fano bands, dips, steps, cusps, damped and chirped oscillations, wave packets, Shubnikov–de Haas oscillations periodic in 1/x and log-periodic terms — on a linear, quadratic, exponential, power-law, activated or logarithmic background. Grids are linear or logarithmic with 120 to 900 points; noise is 0.4–4 % of the range, constant or growing along x; 61 % of the spectra carry σ and the rest do not.

Two numbers are scored against the known truth: the reduced χ² of the fit to the noisy data, and the RMS distance between the fitted curve and the noiseless curve in units of σ. Below 1 means the fit recovered the underlying function better than any single measurement could.

What it is and is not. An adaptive decomposition is an accurate description of the data — positions, widths, frequencies and a curve you can trust — not an identification of the physics. When you know the mechanism, fit the named model for it; the bench shows both.

Keep it free for students

Your lab uses it. Help keep it growing.

Curve Fit Bench is built by two early-career physicists. Licences, sponsorship and custom work pay for new models, verification and support — and keep the bench free for every student who needs it.

Lab licence

Priority model requests, your file formats, email support.

Commercial & OEM

Embed, modify or host the bench in your product or instrument.

Custom models

The model your analysis needs, verified like the rest of the library.

Workshops

A hands-on fitting and statistics session for your department.