binning
- bin_data(data[, minimum=None, maximum=None, bin_size=None, bin_number=100, normalised=True])
Returns the (normalised) number count of a data set with values within defined bins.
- Parameters:
data (array) – Data.
minimum (float) – Minimum value for the histogram bins.
maximum (float) – Maximum value for the histogram bins.
bin_size (float) – Size of the bins.
bin_number (int) – Number of bins.
normalised (bool) – If
True
the histogram will be normalised.
- Returns:
bin_centres (array): The central value of each bin.
binned_data (array): The binned number count (or normalised histogram) of the data set.