<< bwrcolormap CHE3007S che_boxplot >>

CHE3007S >> CHE3007S > calculate_bins

calculate_bins

A function to calculate the number of bins to be used for a subset of a data source, based on the full dataset provided. The bin width is calculated using the Freedman–Diaconis rule.

Syntax

n_bins = calculate_bins(data, data_split)

Parameters

data:

full column vector for data to be binned

data_split:

subsection of the data which the number of bins will be calculated for

n_bins:

number of bins for the data_split value


Report an issue
<< bwrcolormap CHE3007S che_boxplot >>