face2face.statistics.check_distribution.get_best_fit_distribution

face2face.statistics.check_distribution.get_best_fit_distribution(distribution_list, fit, termination_condition=1)

Searches the best fitting distribution

Tests the included distributions recursively against each other to get the best fitting distribution.

Parameters
  • distribution_list (list) – Contains a list of strings with every distribution included in the powerlaw library.

  • fit (Fit object) – Fit objected for the given data set.

  • termination_condition (int, default: 1) – If the function get_best_fit_distribution does not find best fit, because the remaining two are too similar you can set it on 2, to get the two best fitting distributions.

Returns

distribution_list – Contains the best fit distribution as a string. Amount of best fitting distributions depends on the termination_condition parameter.

Return type

list