src.statistics.statistics_psd package¶
Submodules¶
src.statistics.statistics_psd.statistics_psd_controller module¶
Statistics PSD Controller
-
class
src.statistics.statistics_psd.statistics_psd_controller.
statisticsPsdController
(minimum_time, maximum_time, event_ids, all_channels_names)[source]¶ Bases:
statistics.statistics_psd.statistics_psd_listener.statisticsPsdListener
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 :param channel_selected: Channel selected for the ERP. :type channel_selected: str :param stats_first_variable: The first independent variable on which the statistics must be computed (an event id) :type stats_first_variable: str :param stats_second_variable: The second independent variable on which the statistics must be computed (an event id) :type stats_second_variable: str
-
get_elements_selected
(elements_selected)[source]¶ Get the elements selected by the user in the multiple elements’ selector. :param elements_selected: Elements selected in the multiple elements’ selector. :type elements_selected: list of str
-
plot_psd
(psd_fig_one, topo_fig_one, psd_fig_two, topo_fig_two)[source]¶ Send the information to the view for plotting the power spectral density computed. :param psd_fig_one: The figure of the actual power spectral density’s data computed on the first independent variable :type psd_fig_one: matplotlib.Figure :param topo_fig_one: The figure of the topographies of the actual power spectral density’s data computed on the first independent variable :type topo_fig_one: matplotlib.Figure :param psd_fig_two: The figure of the actual power spectral density’s data computed on the second independent variable :type psd_fig_two: matplotlib.Figure :param topo_fig_two: The figure of the topographies of the actual power spectral density’s data computed on the second independent variable :type topo_fig_two: matplotlib.Figure
src.statistics.statistics_psd.statistics_psd_listener module¶
Statistics PSD Listener
-
class
src.statistics.statistics_psd.statistics_psd_listener.
statisticsPsdListener
[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.statistics.statistics_psd.statistics_psd_view module¶
Statistics PSD View
-
class
src.statistics.statistics_psd.statistics_psd_view.
statisticsPsdView
(minimum_time, maximum_time, event_ids, all_channels_names)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
-
cancel_power_spectral_density_trigger
()[source]¶ Send the information to the controller that the computation is cancelled.
-
channels_selection_trigger
()[source]¶ Open the multiple selector window. The user can select multiple channels.
-
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
-
get_first_independent_variable_selected
()[source]¶ Get the first independent variable selected by the user. :return: First independent variable selected :rtype: str
-
get_second_independent_variable_selected
()[source]¶ Get the second independent variable selected by the user. :return: Second independent variable selected :rtype: str
-
static
plot_psd
(psd_fig_one, topo_fig_one, psd_fig_two, topo_fig_two)[source]¶ Plot the power spectral density. :param psd_fig_one: The figure of the actual power spectral density’s data computed on the first independent variable :type psd_fig_one: matplotlib.Figure :param topo_fig_one: The figure of the topographies of the actual power spectral density’s data computed on the first independent variable :type topo_fig_one: matplotlib.Figure :param psd_fig_two: The figure of the actual power spectral density’s data computed on the second independent variable :type psd_fig_two: matplotlib.Figure :param topo_fig_two: The figure of the topographies of the actual power spectral density’s data computed on the second independent variable :type topo_fig_two: matplotlib.Figure
-