utils

utils#

Full path: exa.core.model_selection_fitter.utils

Utility functions for the model selection fitter.

Functions

auto_rotate(vec)

Rotates a list of complex numbers to the real quadrature that contains the most amount of information.

calculate_aicc(aic, n, k[, ...])

Akaike information criterion for small sample size.

calculate_model_probability(aics)

Converts the AIC values to model probabilities.

create_unit_string(data_array[, enclosure])

Creates a string that contains the units for that coordinates in the data_array.

fft_unit_conversion(unit[, label])

Converts seconds to frequency and frequency to seconds.

get_formatted_label(data_array)

Gets the formatted label of an xarray.DataArray.

get_matching_indices(source, target)

Gets the indices for which values in target match the source.

get_unit(data_array)

Return unit or units of the data array.

independent_vars_to_list_of_coords(...)

Flattens the independent variables to a list of coordinates.

outlier_detection(y, model, independent_vars)

Finds outlier indices using leave-one-out.

plot_conf_intervals(result[, parameter_pairs, N])

Plots the confindence intervals for correlations between model parameters.