Skip to main content

AlgDiff is a Python class implementing all necessary tools for the design, analysis, and discretization of algebraic differentiators. An interface to Matlab is also provided.

Project description

Installation

To use AlgDiff using pip run the following in the command line:

$ pip install AlgDiff

Some examples

To initialize an algebraic differentiator with parameter \(T=0.1\), \(\alpha=\beta=4\), \(N=0\) and a sampling period of the measured signal equal to \(ts=0.01\) do the following:

>>> from AlgDiff import *
>>> g = AlgebraicDifferentiator(N=0,alpha=4.,beta=4,T=0.1, ts=0.01)

The cutoff frequency in rad/s of this differentiator can be computed by

>>> wc = g.get_cutoffFreq()

The first order derivative of a signal \(y\) given as a numpy array and sampled by \(ts=0.01\) can be achieved by

>>> dydt = g.estimateDer(1,y) # y is a numpy array

Further detailed examples are provided in the jupyter notebooks given the repository. Therein three different notebooks are provided:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AlgDiff-2.1.1.tar.gz (10.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page