freealg.visualization.auto_bins#

freealg.visualization.auto_bins(array, method='scott', factor=4)#

Automatic choice for the number of bins for the histogram of an array.

Parameters:
arraynumpy.array

An array for histogram.

method{'freedman', 'scott', 'sturges'}, default= 'scott'

Method of choosing number of bins.

factorint, default=3

Multiply the number of bins buy a factor

Returns:
num_binsint

Number of bins for histogram.