Skip to main content

pharminv

This is a python interface to harminv, a library for performing harmonic inversion on a signal.

Requirements:

  • BLAS & LAPACK

  • libharminv-dev

  • numpy

Installation:

Make sure that you have the requirements above, then

pip install pharminv

Usage:

harminv.invert contains the basic functionality of the harminv tool. This function should remain stable but the API elsewhere is subject to change.

import numpy as np
import harminv

time = np.linspace(0, 1, 1000)

signal = np.cos(2 * np.pi * time * 10) + np.cos(2 * np.pi * time * 20)

inversion = harminv.invert(signal, fmin=1, fmax=100)

inversion.freq        # mode frequencies
inversion.decay       # decay rates
inversion.Q           # Q factor
inversion.amplitudes  # absolute amplitudes
inversion.phase       # phase shift

License:

harminv was written by Steven G. Johnson and is licensed under the GNU GPLv2+, copyright 2005 by the Massachusetts Institute of Technology.

This python interface to harminv is licensed under the standard BSD 3-clause license.

Metadata

Release files for pharminv 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pharminv 0.2.2
File Size Uploaded Provenance Actions
pharminv-0.2.2.tar.gz 45.3 kB Without provenance Details for pharminv-0.2.2.tar.gz

Release files / pharminv-0.2.2.tar.gz

Download URL pharminv-0.2.2.tar.gz
Size 45.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c384cc7666500089c81a35bb727fa0b08774ae67703104cb2920dca58da13df9
BLAKE2b-256 checksum
How to use checksums
9f247991182d706316e7a58b67bef44f431f51fcfb87146fd92b050a289c43f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pharminv 0.2.2

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.

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