GOFit is a package of C++ algorithms with python interfaces designed for the global optimization of parameters in curve fitting, i.e. for nonlinear least-squares problems arising from curve fitting. GOFit was developed with scientific curve fitting problems in mind but is also applicable to general curve fitting problems provided they can be formulated as nonlinear least-squares problems.
Full details on how to use GOFit are available in the documentation.
GOFit provides pre-built Python wheels for most common platforms with all dependencies included. However if a wheel does not exist for your platform (or if building from source), GOFit requires the following software to be installed:
- PyBind11 2.9.1 or above (https://pybind11.readthedocs.io/)
- Eigen 3.4 or above (https://eigen.tuxfamily.org/)
- CMake 3.18 or above (https://cmake.org/)
For easy installation, use pip:
$ pip install gofit
Note that if an older install of GOFit is present on your system you can use:
$ pip install --upgrade gofit
to upgrade GOFit to the latest version.
Alternatively, you can download the source code from Github and unpack as follows:
$ git clone https://github.com/ralna/gofit
$ cd gofit
GOFit can then be compiled and installed using:
$ pip install .
Please Note: don't forget to install the required dependencies (see above).
To upgrade GOFit to the latest version, navigate to the top-level directory (i.e. the one containing setup.py
) and re-run the installation using pip
, as above:
$ git pull
$ pip install .
The documentation provides some simple examples of how to run GOFit.
You can uninstall GOFit as follows:
$ pip uninstall gofit
Please report any bugs using GitHub's issue tracker.
This software is released under the New BSD license.