Skip to main content

A Python module that implements NAFF algorithm

Project description

Authors:

  • Foteini Asvesta (fasvesta .at. cern .dot. ch)

  • Nikos Karastathis (nkarast .at. cern .dot. ch)

  • Panagiotis Zisopoulos (pzisopou .at. cern .dot. ch)

A Python module that implements the Numerical Analysis of Fundamental Frequencies method of J. Lashkar. The code works either as a script (as the original code of Lashkar) or loaded as a module in Python/Julia code or jupyter-like notebooks (i.e. SWAN).

Example of Usage

import PyNAFF as pnf
import numpy as np

t = np.linspace(1, 3000, num=3000, endpoint=True)
Q = 0.12345
signal = np.sin(2.0*np.pi*Q*t)
pnf.naff(signal, 500, 1, 0 , False)
# outputs an array of arrays for each frequency. Each sub-array includes:
# [order of harmonic, frequency, Amplitude, Re{Amplitude}, Im{Amplitude]


# My frequency is simply
pnf.naff(signal, 500, 1, 0 , False)[0][1]

– nkarast

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

PyNAFF-1.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

PyNAFF-1.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

PyNAFF-1.1.1-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file PyNAFF-1.1.1.tar.gz.

File metadata

  • Download URL: PyNAFF-1.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyNAFF-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4909944edbdc6d01fe3c8263d09ab8c38cf976f3799cea8d645ef6e2fe331dca
MD5 ba1e2702b77ec45322ebe370d7cc5af5
BLAKE2b-256 8a3fdc4f53fa9c7f835d5ff17540ac77e5856cc1f7de26827034562198e47408

See more details on using hashes here.

File details

Details for the file PyNAFF-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for PyNAFF-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f06bd3c982e25d68926b9763ad094b67d40de61ddf69d81194eb6f281b8e2a45
MD5 2221b75479363e9d031a8e2ead4dff22
BLAKE2b-256 d6f08a0bf7ca804afc70e4b20bf36c8fdebb62d2fc0cd65e41fcd0cc524816ee

See more details on using hashes here.

File details

Details for the file PyNAFF-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for PyNAFF-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ccd956a82c8fb1467035ea6e9031bee66b8de2d1fe616f3a91bfa30628edd431
MD5 afd5d79b0c8fac16191c11085ddfb52b
BLAKE2b-256 087b6ec04ec54413d4b12c1ce3fe952aca7b4f8cde63e4ad8ff2b69e6094e5da

See more details on using hashes here.

Supported by

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