Skip to main content

discrete_differentiator

Takes a series of equally spaced points, and computes the point-wise derivative.

Takes a sequence of numbers, and returns a sequence of numbers that are the derivative of the given sample.

The sequence may either be a Python array, or available in a CSV file. Differentiation is done as follows:

For first data point uses:        f'(x) =(-f(x+2h) + 4*f(x+h) - 3*f(x))/(2h)
For internal data points uses:    f'(x) =(f(x+h) - f(x-h))/(2h)
For last data point uses:         f'(x) =(f(x-2h)  - 4*f(x-h) + 3*f(x))/(2h)

Accommodates CSV files with or without column header. Also accommodates CSV files with multiple columns, of which one contains the sequence to differentiate.

Despite many parameters, simple cases are simple. Examples:

from discrete_differentiator.discrete_differentiator import DiscreteDifferentiator as DD

o DD.differentiate([2,4,6,7])
o Given a csv file foo.csv with a single column of numbers:
   DD.differentiate('foo.txt')
o A csv file like this:
     "trash column", 10
     "more trash", 20
   DD.differentiate('foo.txt', colIndex=1)

See test file for more examples.

Metadata

Release files for discrete-differentiator 0.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 discrete-differentiator 0.1
File Size Uploaded Provenance Actions
discrete_differentiator-0.1.tar.gz 2.0 kB Without provenance Details for discrete_differentiator-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discrete-differentiator 0.1
File Interpreter ABI Platform Actions
discrete_differentiator-0.1-py3-none-any.whl Python 3 none any Details for discrete_differentiator-0.1-py3-none-any.whl

Total release size: 3.7 kB

Release files / discrete_differentiator-0.1.tar.gz

Download URL discrete_differentiator-0.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
79cfbbf9d061fe9acf662cdf2fd968fb5ce847dd3e9f6d7fc0bc74cc291f18a5
BLAKE2b-256 checksum
How to use checksums
9f9688a13c7b4af0e1ff020666f8500468a41445a7f650fb1269cf0c83e23191
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2

Release files / discrete_differentiator-0.1-py3-none-any.whl

Download URL discrete_differentiator-0.1-py3-none-any.whl
Size 1.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5171173f8c696e4c53bac990d3bc1cc14dd9dab5d800fd814a693e3ef6bbd92
BLAKE2b-256 checksum
How to use checksums
261dbea2bdda68df2d18d48f3c4880390763d08db5a999a7b8d5145e4feaa2c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.2

Security for discrete-differentiator 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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