Skip to main content

Index of non-stationarity

https://zenodo.org/badge/243275920.svg

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynnst-0.2.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file pynnst-0.2.tar.gz.

File metadata

  • Download URL: pynnst-0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pynnst-0.2.tar.gz
Algorithm Hash digest
SHA256 cf92a1d7fa7457f6849fa67e969b555d6b5e0c3da34dc762b64abdebe414d135
MD5 441a11cd6bf3971469630590e7495f47
BLAKE2b-256 ef4eb8baf7be463317f200881ce2709f45df148c6e832db7d094d7a138a2aa24

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2 This release

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page