You need to consider the maximum and minimum distances.
If the minimum distance of a spatial object (say, a sphere of radius r) to all other means is greater than the maximum distance to one, all objects inside the container will belong to this means. Because if
maxdist(mean_i, container) < min of all j != i mindist(mean_j, container)
then, in particular, for any object in the container
dist(mean_i, obj_in_container) < min of all j != i dist(mean_j, obj_in_container)
those. the object will belong to the average value of i.
The minimum and maximum distances for spheres and rectangles can be trivially calculated in arbitrary dimensions. However, in higher dimensions, mindist and maxdist become very similar, and the condition is rarely fulfilled. In addition, it is of great importance if your tree is well structured (for example, small containers) or poorly structured (overlapping containers).
kd trees are good for read-only memory operations. For the inserts, they are pretty good. R * demos are much better here. In addition, the improved R * -trees separation strategy pays off because it generates more rectangular rectangles than other strategies.
source share