In [1]:
%config InlineBackend.figure_format = 'retina'
%matplotlib inline
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style('white')
from misshapen import nonshape
In [2]:
x = np.load('./exampledata.npy')
Fs = 1000
In [3]:
# Function inputs
f_range = (10,20)
f_slope = ((2,8),(25,35))
window_size_slope = 1000
window_size_spec = 350
In [4]:
isosc = nonshape.oscdetect_whitten(x, f_range, Fs, f_slope,
window_size_slope=window_size_slope, window_size_spec=window_size_spec,
plot_spectral_slope_fit = True, plot_powerts = True)
In [ ]: