phase_utils.bp_filter_1d(x, fs, ftype, wn, order=4, do_plot=1, ax_list=[])¶Band Pass Filtering for 1D input data
| Parameters: |
|
|---|---|
| Returns: |
|
phase_utils.compute_analytical_signal(x_filtered, fs, return_errors=[])¶Compute the analytical signal of the band-pass filter x_filtered and return the analytical amplitude, phase (wrap and unwrap) and frequency.
| Parameters: |
|
|---|---|
| Returns: |
|
phase_utils.compute_robust_estimation(x_raw, fs, fmin, fmax, f_tolerance, noise_tolerance, n_monte_carlo=20, do_plot=0, superpose=1, ftype='elliptic', forder=4, do_fplot=0, return_errors=0)¶Compute the robust estimation of the phase using the method described in [1].
| Parameters: |
|
|---|---|
| Returns: |
|
References
| [1] | (1, 2) Esmaeil Seraj and Reza Sameni. Robust electroencephalogram phase estimation with applications in brain-computer interface systems. 9 February 2017. |
phase_utils.itpc(x_trials, fs, filt_cf, filt_bw, f_tolerance=[], noise_tolerance=[], n_monte_carlo=20, ftype='elliptic', forder=4, do_plot=0, contour_plot=1, n_contours=10)¶Compute and plot the Inter-Trial Phase Clustering
| Parameters: |
|
|---|---|
| Returns: |
|
phase_utils.plot_analytical_signal(x, fs)¶Compute the analytical signal from the signal x and plot the instantaneous enveloppe, phase and frequency
| Parameters: |
|
|---|
phase_utils.plot_complex_trajectory(x, ax=[])¶Plot the complex trajectory of real input signal x. This may help visualize the narrow-band behaviour of the signal.
| Parameters: |
|
|---|