
SciPy
SciPy provides algorithms for optimization, integration, interpolation, eigenvalue problems, algebraic equations, differential equations, statistics and many other classes of problems.
curve_fit — SciPy v1.16.2 Manual
For global optimization, other choices of objective function, and other advanced features, consider using SciPy’s Global optimization tools or the LMFIT package.
SciPy - Installation
Here is a step-by-step guide to setting up a project to use SciPy, with uv, a Python package manager. Install uv following, the instructions in the uv documentation.
savgol_filter — SciPy v1.16.2 Manual
scipy.signal. savgol_filter # savgol_filter(x, window_length, polyorder, deriv=0, delta=1.0, axis=-1, mode='interp', cval=0.0) [source] # Apply a Savitzky-Golay filter to an array. This is a 1-D filter. …
find_peaks — SciPy v1.16.2 Manual
To demonstrate this function’s usage we use a signal x supplied with SciPy (see scipy.datasets.electrocardiogram). Let’s find all peaks (local maxima) in x whose amplitude …
differential_evolution — SciPy v1.16.2 Manual
Examples Try it in your browser! Let us consider the problem of minimizing the Rosenbrock function. This function is implemented in rosen in scipy.optimize.
griddata — SciPy v1.16.2 Manual
scipy.interpolate. griddata # griddata(points, values, xi, method='linear', fill_value=nan, rescale=False) [source] # Convenience function for interpolating unstructured data in multiple …
least_squares — SciPy v1.16.2 Manual
It uses the iterative procedure scipy.sparse.linalg.lsmr for finding a solution of a linear least-squares problem and only requires matrix-vector product evaluations.
butter — SciPy v1.16.2 Manual
scipy.signal. butter # butter(N, Wn, btype='low', analog=False, output='ba', fs=None) [source] # Butterworth digital and analog filter design. Design an Nth-order digital or analog Butterworth …
minimize — SciPy v1.16.2 Manual
It switches between two implementations depending on the problem definition. It is the most versatile constrained minimization algorithm implemented in SciPy and the most appropriate …