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
PyNAFF-1.1.2.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for PyNAFF-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 330eaf82e87467390b0207731586f1ab5aa9ea5b39af25b85d733489eff55182 |
|
MD5 | c5c1688bca112d613f32670077a04140 |
|
BLAKE2b-256 | 24947405b62ec09d7dc3864a8b854488cca52fbd19e3101c36d4880b15a78b52 |