data_base
❭ db_initializers
❭ prepare_ANN_batches
❭ get_binsize
get_binsize
-
data_base.db_initializers.prepare_ANN_batches.get_binsize(length, binsize_goal=
50
)
Calculate the bin size and number of bins closest to the desired bin size goal.
- Parameters:
length (float) – The length of a dendritic branch to bin.
binsize_goal (float, optional) – The desired bin size. Defaults to 50.
- Returns:
A tuple containing the bin size (float) and the number of bins (int) that result in binning closest to the binsize goal.
- Return type:
tuple