Skip to main content

This package facilitates least-squares fitting of noisy data by multi-dimensional, nonlinear functions of arbitrarily many parameters. lsqfit supports Bayesian priors for the fit parameters, with arbitrarily complicated multidimensional Gaussian distributions. A tutorial on fitting is included in the documentation; documentation is in the doc/ subdirectory: see doc/html/index.html or <https://lsqfit.readthedocs.io>.

The fitter uses automatic differentiation to compute gradients of the fit function. This greatly simplifies coding of the fit function since only the function itself need be coded. Coding is also simplified by using dictionaries (instead of arrays) for representing fit data and fit priors.

lsqfit makes heavy use of Python package gvar, which simplifies the analysis of error propagation and the creation of multi-dimensional Gaussian distributions (for fit priors).

This code has been used on a laptop to fit functions of tens-to-thousands of parameters to tens-to-thousands of pieces of data. lsqfit uses the GNU Scientific Library (GSL) and/or scipy to do the fitting, numpy for efficient array arithmetic, and cython to compile efficient code that interfaces between Python and the C-based GSL.

Information on how to install the components is in the INSTALLATION file.

To test the libraries try make tests. Some examples are give in the examples/ subdirectory.

Version numbers: Incompatible changes are signaled by incrementing the major version number, where version numbers have the form major.minor.patch. The minor number signals new features, and the patch number bug fixes.

Created by G. Peter Lepage (Cornell University) 2008
Copyright (c) 2008-2021 G. Peter Lepage
https://zenodo.org/badge/4593457.svg

Metadata

Release files for lsqfit 13.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lsqfit 13.3.1
File Size Uploaded
lsqfit-13.3.1.tar.gz 2.0 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for lsqfit 13.3.1
File
lsqfit-13.3.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
lsqfit-13.3.1-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details
lsqfit-13.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
lsqfit-13.3.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
lsqfit-13.3.1-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details
lsqfit-13.3.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
lsqfit-13.3.1-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details
lsqfit-13.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
lsqfit-13.3.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
lsqfit-13.3.1-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details
lsqfit-13.3.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
lsqfit-13.3.1-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details
lsqfit-13.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
lsqfit-13.3.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
lsqfit-13.3.1-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
lsqfit-13.3.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
lsqfit-13.3.1-cp310-cp310-musllinux_1_2_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.2+ x86-64 Details
lsqfit-13.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
lsqfit-13.3.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
lsqfit-13.3.1-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details

Total release size: 9.3 MB

Release files / lsqfit-13.3.1.tar.gz

Download URL lsqfit-13.3.1.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
3a17e9411d8bb61af8e8e7f6c3620492f594d87b90b564561fd0acbe3adca6b1
BLAKE2b-256 checksum
How to use checksums
3e8b6c46ac9685771181e9ee6750b4daf22f97f5cd26666087fb5a1b31d08455
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp313-cp313-win_amd64.whl

Download URL lsqfit-13.3.1-cp313-cp313-win_amd64.whl
Size 149.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b358af14da857d741f584dac8715db9bf6c20c0b6fa6471508e841e2e09875fb
BLAKE2b-256 checksum
How to use checksums
c799470e0795147d27e1a903392ac0db9c04e01fe6bf8c1ff3204a1b01feb711
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL lsqfit-13.3.1-cp313-cp313-musllinux_1_2_x86_64.whl
Size 696.8 kB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
c9374430847bf87a56ecd5a51f705fa51ce536f02abcedc8f2342b68048ba2ac
BLAKE2b-256 checksum
How to use checksums
4593fb0919d485977417ba1c300827ffe5607b766da30968eb43f4297a382b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lsqfit-13.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 667.9 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1944892b1dea2d83aa1dcc570d46143918e9d9ace23792238f71bd663b45fb9f
BLAKE2b-256 checksum
How to use checksums
5acb42b3c5b16d67eb8788c29525f06ae813e52b51c037a54d91d1c2826663be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL lsqfit-13.3.1-cp313-cp313-macosx_11_0_arm64.whl
Size 155.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f305ce2e550ebe69d659ce95fa7478b26d37a7394585e7a96e97a1ca3824bb2e
BLAKE2b-256 checksum
How to use checksums
5b29a02448c1f6ddc99394130ca595ca95b69ad7dc4c5b5b273c24777c18f946
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp313-cp313-macosx_10_13_x86_64.whl

Download URL lsqfit-13.3.1-cp313-cp313-macosx_10_13_x86_64.whl
Size 161.7 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
0fe1a092d90400c1cc762de336ced8584a7dd5198b94533c343f276b942d42b1
BLAKE2b-256 checksum
How to use checksums
ecb671bc55eacce583fb20aba0c65a8577bc1663c84461b4805112c1399a5c41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp312-cp312-win_amd64.whl

Download URL lsqfit-13.3.1-cp312-cp312-win_amd64.whl
Size 149.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
7cdc405fa824756a43d75fffabdb5a62768400e0f937174e7009e052703e2f8a
BLAKE2b-256 checksum
How to use checksums
4162dfee113e523ec7dbd2a7f564b5ac6c98eb04d6b3bd0c4ce1d785c34f9127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL lsqfit-13.3.1-cp312-cp312-musllinux_1_2_x86_64.whl
Size 700.2 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
34d5e68868c7371e4ca53ba347c0c54829dc61d7c62ac83dbedf68dfc00f1047
BLAKE2b-256 checksum
How to use checksums
ff7bab5f907e4c5ecec19604ab34d6786ca1a034b6c3f5d8deb2ed7758e1b4a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lsqfit-13.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 675.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
dca84700af90783fe140d37bbdc4d5c626ed67337ef53536d21a88cfdc69f04d
BLAKE2b-256 checksum
How to use checksums
706c1176b4005d09436ffd7726aa7b865047ce8343df21f3e14c5c0823b8c42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL lsqfit-13.3.1-cp312-cp312-macosx_11_0_arm64.whl
Size 156.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
31c3db12baa0a7e710f4e85360a69cd060a4c4467563457cd7b8396e298fc512
BLAKE2b-256 checksum
How to use checksums
735c170eb7aa1c63cd4d4730cd19487b31604a29a7b4056cbcb9dfaebcfabdbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp312-cp312-macosx_10_13_x86_64.whl

Download URL lsqfit-13.3.1-cp312-cp312-macosx_10_13_x86_64.whl
Size 163.0 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
6d112c7527a4e0427a22822cf9d1a1b5a82166f1b4d16ebe53e7597cff399630
BLAKE2b-256 checksum
How to use checksums
75ecdc5c6d32bf36d546859de3c97f4d29f544cb1492fe2eba4496a35ddf63b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp311-cp311-win_amd64.whl

Download URL lsqfit-13.3.1-cp311-cp311-win_amd64.whl
Size 149.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
2d621be1b4a1ac294245e68468e1acee64c7bc419ddab1fb3469ec6cb764a018
BLAKE2b-256 checksum
How to use checksums
345324c7cec60b5caa59d5f3e086fa9924e02004d30088e9e0b87f86ed2fd708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL lsqfit-13.3.1-cp311-cp311-musllinux_1_2_x86_64.whl
Size 707.1 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
22d906d11dbabdaf8ed5f15a7dee7719c7d1a81e08164b6e35684b90273aa9e3
BLAKE2b-256 checksum
How to use checksums
518379fc475fffd6ff6dc45dc4859547a9621c7d2137bc78e581d26284a997cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lsqfit-13.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 682.5 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3749a16d8d7e07501986fbe707a373ac4b0818280320bce51dffb951faee3930
BLAKE2b-256 checksum
How to use checksums
6bbdf338745017bc349b689fba4f80b3337bab6e9678b8ce129f0433fab2bd05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL lsqfit-13.3.1-cp311-cp311-macosx_11_0_arm64.whl
Size 156.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
666f2ca415a5032ddbd7aca83379127ea18f286176cb46b45e35399169d587ca
BLAKE2b-256 checksum
How to use checksums
6c76d7b9f7839a27209a95735820c2dfbeb358f0d071f29cd8455cf18d1ff6ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp311-cp311-macosx_10_9_x86_64.whl

Download URL lsqfit-13.3.1-cp311-cp311-macosx_10_9_x86_64.whl
Size 161.9 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
1c9c5c60969bc6aae481ebb7c58c49a53d581f181ff1561de1f3d459f0863a77
BLAKE2b-256 checksum
How to use checksums
3672a78931c92c4ccd906f319ced332653a15a906c532d66e72a0a912ff5b68a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp310-cp310-win_amd64.whl

Download URL lsqfit-13.3.1-cp310-cp310-win_amd64.whl
Size 149.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
0e99ae750c77c4767f0a8324f085604e01006c54f6def3a285cce07f50e217f0
BLAKE2b-256 checksum
How to use checksums
134dfeae7fe9670df1e18226dfe8f828d4b2709a5271e9f901831492bbf602a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp310-cp310-musllinux_1_2_x86_64.whl

Download URL lsqfit-13.3.1-cp310-cp310-musllinux_1_2_x86_64.whl
Size 673.1 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
23eeeedbd44b089eeb94bc43519418f512bc41a929b9e60be78d85bdecb647e5
BLAKE2b-256 checksum
How to use checksums
cc7996488956a57aeef2318f9c95b18c8701de20986cb522efffe403fbb11a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lsqfit-13.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 645.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3b5f72d7bec84d9aff264441f92f4dfc81d0905a8aeaa00bf06503b868bf020e
BLAKE2b-256 checksum
How to use checksums
7084d208bb9929745d0beb5e410682ad13e0ed6ffc32dd94caab0695f4653c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL lsqfit-13.3.1-cp310-cp310-macosx_11_0_arm64.whl
Size 156.3 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c172252c1363993b2f48c6ae26ad173f4e40549d73b6e01efdb53b7cfe751236
BLAKE2b-256 checksum
How to use checksums
b3ee3075b596fce8f1dae1563887f3ff950f3fdb01588d2fe219233c3c045ca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lsqfit-13.3.1-cp310-cp310-macosx_10_9_x86_64.whl

Download URL lsqfit-13.3.1-cp310-cp310-macosx_10_9_x86_64.whl
Size 161.5 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
22ec4a32e782c7f442ae0588f9bc200aa2f6195942ce5f5cccdc4c3bfa5059e8
BLAKE2b-256 checksum
How to use checksums
f0aaa5e7c14cd871432ea7eb62ac7df17331e147dce538d7ab7e3dd76bda930d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

13.3.1 This release

21 release files

13.3

21 release files

13.2

20 release files

13.1

20 release files

13.0.1

1 release file

13.0

1 release file

12.0.3

1 release file

12.0.2

1 release file

12.0.1

1 release file

12.0

1 release file

11.8

1 release file

11.7

1 release file

11.6

1 release file

11.5.3

1 release file

11.5.2

1 release file

11.5.1

1 release file

11.5

1 release file

11.4.1

1 release file

11.4

1 release file

11.3

1 release file

11.2

1 release file

11.1

1 release file

11.0.1

1 release file

11.0

1 release file

10.0.2

1 release file

10.0.1

1 release file

10.0

1 release file

9.5

1 release file

9.4

1 release file

9.3

1 release file

9.2

1 release file

9.1.6

1 release file

9.1.5

1 release file

9.1.3

1 release file

9.1.2

1 release file

9.1.1

1 release file

9.1

1 release file

9.0.2

1 release file

9.0.1

1 release file

9.0

1 release file

8.1

1 release file

8.0.2

1 release file

8.0.1

1 release file

8.0

1 release file

7.1.0

1 release file

7.1

7.0

1 release file

6.1.3

1 release file

6.1.2

1 release file

6.1.1

1 release file

6.0

1 release file

5.0.1

1 release file

5.0

1 release file

4.8.5.1

1 release file

4.8.5

1 release file

4.8.4

1 release file

4.8.3

1 release file

4.8.2

1 release file

4.8.1

1 release file

4.8

1 release file

4.7

1 release file

4.6.1

1 release file

4.6

1 release file

4.5.3

1 release file

4.5.2

1 release file

4.5.1

1 release file

4.5

1 release file

4.4.4

1 release file

4.4.3

1 release file

4.4.2

1 release file

4.4.1

1 release file

4.4

1 release file

4.2.6

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page