def __calculate_radius(self, number_neighbors, radius):
if (number_neighbors >= len(self._osc_loc)):<EOL><INDENT>return radius * self.__increase_persent + radius;<EOL><DEDENT>return average_neighbor_distance(self._osc_loc, number_neighbors)<EOL>
!
        @brief Calculate new connectivity radius.

        @param[in] number_neighbors (uint): Average amount of neighbors that should be connected by new radius.
        @param[in] radius (double): Current connectivity radius.

        @return New connectivity radius.