一种确定滑动窗口规模的边界距离算法 (Boundary Distance Algorithm for Determining Sliding Window Size)