finish updating of distance calculation and weight calculation for different distance function
finish updating of distance calculation and weight calculation for different distance function

XiaosuTong/Spaloess,XiaosuTong/Spaloess