A package performing power spectrum analysis, and comparing the given signal with red noise
Project description
class RedNoiseAnalysis(
signal,
lag = 1,
chunk_size = 1825,
n_red_noise_ens = 1000,
red_noise_simulate_length = 365000
)
This is a package that performing temporal power spectrum analysis, and comparing given signal with theoretical red noise and simulated red noise.
Usage
Calculating power spectrum of given signal, and red noise which has similar memory with given signal.
from pyRedNoise.RedNoiseAnalysis import RedNoiseAnalysis
signal = np.load("signal.npy")
rna = RedNoiseAnalysis(signal)
rna.get_power_spectrum()
# Given signal
rna.signal
# power spectrum of given signal
rna.sp
# frequencies of given signal
rna.freq
# theoretical red noise power spectrum
rna.sp_theo
# theoretical red noise frequencies
rna.freq_theo
# simulated red noise power spectrum
rna.sp_red
# simulated red noise frequencies
rna.freq_red
Fast visualization. If you have specific plotting needs, calling this method is not suggested.
rna.plot_power_spectrum() # show and save the plot at the same time
Notes
Details of derivation, theory, and implementation can be found in https://github.com/Prcpltwfkwd-TW/Power_Spectrum_Analysis.git
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
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 pyrednoise-1.0.0.tar.gz.
File metadata
- Download URL: pyrednoise-1.0.0.tar.gz
- Upload date:
- Size: 230.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9ddc995b6f8a534706295348dd71564669bea1bc121a5375672eb5f45ac7b4d
|
|
| MD5 |
5539baf052658f6d9f30c168c1612261
|
|
| BLAKE2b-256 |
e114e0c06c5078706f26602f195860d70c961aefd48b3fe52901022bd2050710
|
File details
Details for the file pyrednoise-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pyrednoise-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00d5050847ee533f18ab59e54a744567f319a99db81df4233d505a2eafc9d416
|
|
| MD5 |
5c99b9ffda3cb4362443233837fbb01f
|
|
| BLAKE2b-256 |
d49062958bff4cc8343198048e26eee150d891326ab877f8565232550aa0cc80
|