neuron_morphology.features.statistics.overlap module¶
-
neuron_morphology.features.statistics.overlap.calculate_coordinate_overlap(coordinates_a, coordinates_b, dimension: int = 1)[source]¶ Return the % of coordinates_a that are above, overlaping, and below coordinates_b, and the same for b over a
Parameters: - coordinates_a: 2d array-like with x, y, z cols
- coordinates_b: 2d array-like with x, y, z cols
- dimension: dimension to compare (0, 1, 2 for x, y, z), default 1 (y)
Returns: - dict: a_above_b, a_overlap_b, a_below_b, or
-1’s if coordinates_b is empty
-
neuron_morphology.features.statistics.overlap.calculate_coordinate_overlap_from_min_max(coordinates: numpy.ndarray, minv: float, maxv: float, dimension: int = 1)[source]¶ Return the % of coordinates that are above the max, between, or below the min
Parameters: - coordinates: np.ndarray with x, y, z columns
- minv: min to check against
- maxv: max to check against
- dimension: dimension to compare (0, 1, 2 for x, y, z), default 1 (y)