A new algorithm of the edge correction in the point pattern analysis and its application