bundles / scipy 1.18.0 / scipy / spatial / _kdtree / Rectangle / split
function
scipy.spatial._kdtree:Rectangle.split
source: /scipy/spatial/_kdtree.py:168
Signature
def split(self, d, split)Summary
Produce two hyperrectangles by splitting.
Extended Summary
In general, if you need to compute maximum and minimum distances to the children, it can be done more efficiently by updating the maximum and minimum distances to the parent.
Parameters
d: intAxis to split hyperrectangle along.
split: floatPosition along axis
dto split at.
Returns
less: RectangleRectangle with
d-th axis less thansplit.greater: RectangleRectangle with
d-th axis greater thansplit.
Aliases
scipy.spatial.Rectangle.split