Index of non-stationarity
Obtaining non-stationary index for time-series.
Installing this package
Use pip to install it by:
$ pip install pyNNST
Simple examples
Here is a simple example on how to use the code:
# Import packages
import pyNNST
import numpy as np
# Define a sample signal x
T = 20 # Time length of x
fs = 400 # Sampling frequency of x
dt = 1 / fs # Time between discreete signal values
x = np.random.rand(T * fs) # Signal
time = np.linspace(0, T - dt, T * fs) # Time vector
std = np.std(x, ddof = 1) # Standard deviation of x
mean = np.mean(x) # Mean value of x
# Class initialization
example = pyNNST.nnst(x, nperseg = 100, noverlap = 0, confidence = 95)
# Compute the run test for non-stationarity
example.idns()
outcome = example.get_outcome() # Get the results of the test as a string
index = example.get_index() # Get the index of non-stationarity
limits = example.get_limits() # Get the limits outside of which the signal is non-stationary
Reference:
Non-stationarity index in vibration fatigue: Theoretical and experimental research; L. Capponi, M. Cesnik, J. Slavic, F. Cianetti, M. Boltezar; International Journal of Fatigue 104, 221-230 https://www.sciencedirect.com/science/article/abs/pii/S014211231730316X
Metadata
Release files for pyNNST 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynnst-0.2.tar.gz | 4.6 kB | Without provenance | Details for pynnst-0.2.tar.gz |
Release files / pynnst-0.2.tar.gz
| Download URL | pynnst-0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf92a1d7fa7457f6849fa67e969b555d6b5e0c3da34dc762b64abdebe414d135
|
|
BLAKE2b-256 checksum How to use checksums |
ef4eb8baf7be463317f200881ce2709f45df148c6e832db7d094d7a138a2aa24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for pyNNST 0.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.