- qspec. mode_lognormal ( x , bins=100 )[source]
-
Estimate the mode of a sample by fitting a lognormal distribution to its histogram. The histogram and the fitted distribution are plotted.
- Parameters:
-
- xarray_like
The sample data.
- binsarray_like
The number of bins or the bin edges of the histogram, see
numpy.histogram.
- Returns:
-
- modefloat
The mode of the lognormal distribution.