Skip to main content

Definition of non-stationary index for time-series

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

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.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file pyNNST-0.1.tar.gz.

File metadata

  • Download URL: pyNNST-0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyNNST-0.1.tar.gz
Algorithm Hash digest
SHA256 1e65ea237537a9af4126a35904cb7ec8a34302d174de6d484b07e86eeeae8ed8
MD5 2fa532b530826d08cf619549e0e6db13
BLAKE2b-256 ca13b86365e5ee7655648ca027da821a57de6d43943415cf1dfb72a339779f07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page