distributionPage module

class tihi.tihi_wizardPages.distributionPage.DistributionFittingPage(interpolation_class, x_label='x-axis', y_label='y-axis', title='title')

Bases: QWizardPage

Wizard page for fitting distributions to data.

interpolation_class : Instance of a class containing x_val and y_val attributes for data. x_label : Label for the x-axis. y_label : Label for the y-axis. title : Title for the plot.

clear()

Clears the plot and re-plots the original data.

distribution_type_changes()

Updates the selected distribution type based on user input.

max_iter_changes()

Updates the maximum iteration value based on user input.

method_changes()

Updates the optimizer loss type based on user input.

plot_all()

Plots all decompositions.

plot_input_data(plot_approximation=False, plot_all_distributions=False)

Plots the input data along with the approximation or all decompositions if specified.

plot_approximation : If True, plot the approximation. (the sum of distributions) plot_all_distributions: If True, plot all decompositions.

run()

Executes the decomposition based on the selected distribution type.

class tihi.tihi_wizardPages.distributionPage.QIComboBox(parent=None)

Bases: QComboBox

Custom ComboBox class inheriting from QComboBox.