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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyNAFF-1.1.0.tar.gz.
File metadata
- Download URL: PyNAFF-1.1.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ef1b9363493d77420185b47db4f4f6f0dae5dedcf5b348bc4b9d72d472d370
|
|
| MD5 |
dfdf028096c25bb55ae282d81ca38d31
|
|
| BLAKE2b-256 |
770eb490a723afb51ecc0737825c4902467bdb740fa7e0992d29998a4ce9765b
|
File details
Details for the file PyNAFF-1.1.0-py3-none-any.whl.
File metadata
- Download URL: PyNAFF-1.1.0-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec34a6b9ba1cddf21a5415ac3236e317b36220bf00b1002ce83e677ecf9f6fe6
|
|
| MD5 |
ac0628011d6e9db229579ccbce907158
|
|
| BLAKE2b-256 |
30337004c0b22d413be8c71992143aefb4414d11f5f7b8dbfe54e26c9d091db8
|