neurom.stats.optimal_distribution

neurom.stats.optimal_distribution(data, distr_to_check=('norm', 'expon', 'uniform'))[source]
Calculate the parameters of a fit of different distributions to a data set
and returns the distribution of the minimal ks-distance.
Parameters:data – array of data points to be fitted
Options:
distr_to_check: tuple of distributions to be checked
Returns:FitResults object with fitted parameters, errors and distrubution type of the fit with the smallest fit distance

Note

Uses Kolmogorov-Smirnov test to estimate distance and p-value.