src.plots.power_spectral_density package¶
Submodules¶
src.plots.power_spectral_density.power_spectral_density_controller module¶
Power spectral density controller
-
class
src.plots.power_spectral_density.power_spectral_density_controller.
powerSpectralDensityController
(minimum_time, maximum_time)[source]¶ Bases:
plots.power_spectral_density.power_spectral_density_listener.powerSpectralDensityListener
Close the window.
Close the window and send the information to the main controller. :param minimum_frequency: Minimum frequency from which the power spectral density will be computed. :type minimum_frequency: float :param maximum_frequency: Maximum frequency from which the power spectral density will be computed. :type maximum_frequency: float :param minimum_time: Minimum time of the epochs from which the power spectral density will be computed. :type minimum_time: float :param maximum_time: Maximum time of the epochs from which the power spectral density will be computed. :type maximum_time: float :param topo_time_points: The time points for the topomaps. :type topo_time_points: list of float
-
plot_psd
(psd_fig, topo_fig)[source]¶ Send the information to the view for plotting the power spectral density computed. :param psd_fig: The figure of the actual power spectral density’s data computed :type psd_fig: matplotlib.Figure :param topo_fig: The figure of the topographies of the actual power spectral density’s data computed :type topo_fig: matplotlib.Figure
src.plots.power_spectral_density.power_spectral_density_listener module¶
Power spectral density listener
-
class
src.plots.power_spectral_density.power_spectral_density_listener.
powerSpectralDensityListener
[source]¶ Bases:
abc.ABC
Listener doing the connection between the controller and the view for computing the power spectral density on the dataset. It retrieves the information from the view to send it to the controller.
src.plots.power_spectral_density.power_spectral_density_view module¶
Power spectral density view
-
class
src.plots.power_spectral_density.power_spectral_density_view.
powerSpectralDensityView
(minimum_time, maximum_time)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
-
cancel_power_spectral_density_trigger
()[source]¶ Send the information to the controller that the computation is cancelled.
-
confirm_power_spectral_density_trigger
()[source]¶ Retrieve the parameters and send the information to the controller.
-
create_array_from_time_points
()[source]¶ Create an array of time points depending on the time points given. :return: The time points for the topomaps. :rtype: list of float
-
static
plot_psd
(psd_fig, topo_fig)[source]¶ Plot the power spectral density. :param psd_fig: The figure of the actual power spectral density’s data computed :type psd_fig: matplotlib.Figure :param topo_fig: The figure of the topographies of the actual power spectral density’s data computed :type topo_fig: matplotlib.Figure
-