Metadata-Version: 2.1
Name: primelab
Version: 0.1.0
Summary: Numerical differentiation in python.
License: MIT
Author: Andy Goldschmidt
Author-email: andygold@uw.edu
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: ipykernel (>=5.2.1,<6.0.0)
Requires-Dist: jupyter_client (>=6.1.3,<7.0.0)
Requires-Dist: nbsphinx (>=0.6.1,<0.7.0)
Requires-Dist: numpy (>=1.18.3,<2.0.0)
Requires-Dist: scipy (>=1.4.1,<2.0.0)
Requires-Dist: sklearn (>=0.0,<0.1)
Requires-Dist: sphinx (>=3.0.2,<4.0.0)
Description-Content-Type: text/x-rst

.. image:: https://readthedocs.org/projects/prime/badge/?version=latest
   :target: https://prime.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status
  
.. image:: https://img.shields.io/badge/License-MIT-blue.svg
   :target: https://lbesson.mit-license.org/
   :alt: MIT License
 
Numerical differentiation methods for python, including:

1. Symmetric finite difference schemes using arbitrary window size. 

2. Savitzky-Galoy derivatives of any polynomial order with independent left and right window parameters.

3. Spectral derivatives with optional filter.

4. Spline derivatives of any order.

5. Polynomial-trend-filtered derivatives generalizing methods like total variational derivatives. 

These examples are intended to survey some common differentiation methods. The goal of this package is to bind these common differentiation methods to an easily implemented differentiation interface to encourage user adaptation.

Usage:

.. code-block:: python

    from primelab import FiniteDifference
    import numpy as np

    x = np.linspace(0,2*np.pi,100)
    y = np.sin(x)
    # Central differencing
    dydx = FiniteDifference(1).d(y, x)


Project references:

[1] Numerical differentiation of experimental data: local versus global methods- K. Ahnert and M. Abel  

[2] Numerical Differentiation of Noisy, Nonsmooth Data- Rick Chartrand  

[3] The Solution Path of the Generalized LASSO- R.J. Tibshirani and J. Taylor

