neighbormodels.neighbors.define_bin_intervals¶
-
define_bin_intervals
(unique_distances: numpy.ndarray) → pandas.core.indexes.interval.IntervalIndex[source]¶ Constructs bin intervals used to group over neighbor distances.
This binning procedure provides a robust method for grouping data based on a variable with a float data type.
Parameters: unique_distances – An array of neighbor distances returned by asking pandas to return the unique distances. Returns: A pandas IntervalIndex
defining bin intervals can be used to sort and group neighbor distances.