FoldedNormal Fitter#

class FoldedNormalFitter(x_values: List[int | float] | ndarray, y_values: List[int | float] | ndarray, max_iterations: int = 1000)[source]#

Bases: BaseFitter

A class for fitting multiple FoldedNormal distributions to the given data.

Methods

dry_run([axis])

Plot the x and y data for a quick visual inspection of the data.

fit(p0[, frozen])

Fit the data.

fit_boundaries()

Defines the distribution boundaries to be used by fitter.

fitter(x, params)

Fitter function for multi-fitting.

get_fitted_curve()

Get the fitted values of the model.

get_model_parameters([select, errors])

Extract specific parameter values or their uncertainties from the fitting process.

get_value_error_pair([mean_values, std_values])

Retrieve the value/error pairs for the fitted parameters.

plot_fit([show_individuals, x_label, ...])

Plot the fitted models.

This class internally utilizes the following functions from utilities_d module:

Full Import#

from pymultifit.fitters.foldedNormal_f import FoldedNormalFitters