Parameters module

In this module functions for parameters calculating are collected

parameters.DFIC(x, dt, fbounds=[0.03, 0.07], stft_res=[], stft_args=('hamming', 1200, 120, True))[source]

Dominant frequency instability coefficient

Parameters:
  • x (numpy.ndarray) – Sample sequence
  • dt (float) – Sampling period
  • fbounds (list) – Frequencies band
  • spectrum (list) – Pre-calculated spectrum matix (calculated by stft). By default it calculates inside this function.
  • stft_args (tuple) – Arguments for stft function
Returns:

float

parameters.dominant_frequency(x, dt, fbounds=[0.03, 0.07], spectrum=[])[source]

Dominant frequency search

Parameters:
  • x (numpy.ndarray) – Sample sequence
  • dt (float) – Sampling period
  • fbounds (list) – Frequencies bounds
  • spectrum (numpy.ndarray) – Pre-calculated spectrum. By default it calculates inside this function.
Returns:

float

parameters.kritm(x, dt, fbounds=[0.03, 0.07], spectrum=[])[source]

Normalized Kritm parameter

Parameters:
  • x (numpy.ndarray) – Sample sequence
  • dt (float) – Sampling period
  • fbounds (list) – Frequencies band
  • spectrum (numpy.ndarray) – Pre-calculated spectrum. By default it calculates inside this function.
Returns:

float

parameters.power(x, dt, fbounds=[0.03, 0.07], spectrum=[])[source]

Power of the part of the specturm

Parameters:
  • x (numpy.ndarray) – Sample sequence
  • dt (float) – Sampling period
  • fbounds (list) – Frequencies band
  • spectrum (numpy.ndarray) – Pre-calculated spectrum. By default it is calculated within this function.
Returns:

float

parameters.slide_proc(x, dt, procedure, fbounds=[0.03, 0.07], stft_res=[], stft_args=('hamming', 1200, 120, True))[source]

Calculation of the result of the procedure along the time axis using STFT.

Parameters:
  • x (numpy.ndarray) – Sample sequence
  • dt (float) – Sampling period
  • procedure (function) – Name of the function which will be applied on every step
  • fbounds (list) – Frequencies bounds
  • stft_res (list) – Pre-calculated result of STFT
  • stft_args (list) – STFT function arguments (see pyegeg.spectran.stft). Required if STFT didn’t calculated yet.
Returns:

list

Previous topic

Spectral analysis module

This Page