python_codes.general.find_mode_distribution#

find_mode_distribution(data, bin_number)[source]#

Find de mode of a distribution from a serie of realisations of the random variable.

Parameters
  • data (array_like) – serie of realisation of the random variable

  • bin_number (int) – number of bins used is the calculation of the histogram.

Returns

return the mode of the distribution.

Return type

float

Examples using python_codes.general.find_mode_distribution#