src.statistics.statistics_snr package¶
Submodules¶
src.statistics.statistics_snr.statistics_snr_controller module¶
Statistics SNR controller
-
class
src.statistics.statistics_snr.statistics_snr_controller.
statisticsSnrController
(all_channels_names, event_values, event_ids)[source]¶ Bases:
statistics.statistics_snr.statistics_snr_listener.statisticsSnrListener
Close the window.
Close the window and send the information to the main controller. :param snr_methods: The methods used for computing the SNR :type snr_methods: list of str :param source_method: The method used for computing the source estimation :type source_method: str :param read: Boolean telling if the data used for the computation can be read from computer files. :type read: bool :param write: Boolean telling if the data computed must be saved into files. :type write: bool :param picks: The list of channels selected used for the computation :type picks: list of 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, element_type)[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 :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str
-
plot_SNRs
(first_SNRs, second_SNRs, t_values, SNR_methods)[source]¶ Plot the SNRs :param first_SNRs: The SNRs computed over the first independent variable. :type first_SNRs: list of, list of float :param second_SNRs: The SNRs computed over the second independent variable. :type second_SNRs: list of, list of float :param t_values: T-values computed over the SNRs of the two independent variables. :type t_values: list of float :param SNR_methods: SNR methods :type SNR_methods: list of str
src.statistics.statistics_snr.statistics_snr_listener module¶
Statistics SNR listener
src.statistics.statistics_snr.statistics_snr_view module¶
Statistics SNR view
-
class
src.statistics.statistics_snr.statistics_snr_view.
statisticsSnrView
(all_channels_names, event_values, event_ids)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
-
cancel_snr_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.
-
get_first_independent_variable_selected
()[source]¶ Get the first independent variable selected by the user. :return: First independent variable selected :rtype: str
Get the values of the save and load buttons. :return: save_data: True if the data must be saved. Otherwise, False. load_data: True if the data must be loaded. Otherwise, False. :rtype: boolean, boolean
-
get_second_independent_variable_selected
()[source]¶ Get the second independent variable selected by the user. :return: Second independent variable selected :rtype: str
-
static
plot_SNRs
(first_SNRs, second_SNRs, t_values, SNR_methods)[source]¶ Plot the SNRs :param first_SNRs: The SNRs computed over the first independent variable. :type first_SNRs: list of, list of float :param second_SNRs: The SNRs computed over the second independent variable. :type second_SNRs: list of, list of float :param t_values: T-values computed over the SNRs of the two independent variables. :type t_values: list of float :param SNR_methods: SNR methods :type SNR_methods: list of str
-
set_channels_selected
(channels_selected)[source]¶ Set the channels selected in the multiple selector window. :param channels_selected: Channels selected. :type channels_selected: list of str
-
set_listener
(listener)[source]¶ Set the listener to the controller. :param listener: Listener to the controller. :type listener: signalToNoiseRatioController
-
set_snr_methods_selected
(snr_methods)[source]¶ Set the SNR methods selected in the multiple selector window. :param snr_methods: SNR methods selected :type snr_methods: list of str
-
set_trials_selected
(elements_selected, element_type)[source]¶ Set the channels selected in the multiple selector window. :param elements_selected: Trials or Events selected. :type elements_selected: list of str :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str
-
snr_selection_trigger
()[source]¶ Open the multiple selector window. The user can select a multiple pipelines used for the classification.
-