question: private double minDistLevel ( DBID id , int level ) { final NumberVector obj = relation . get ( id ) ; final double r = 1.0 / ( 1 << ( level - 1 ) ) ; double dist = Double . POSITIVE_INFINITY ; for ( int dim = 0 ; dim < d ; dim ++ ) { final double p_m_r = getDimForObject ( obj , dim ) % r ; dist = Math . min ( dist , Math . min ( p_m_r , r - p_m_r ) ) ; } return dist * diameter ; }
target:  minDist function calculate the minimal Distance from Vector p to the border of the corresponding r-region at the given level