A Method of Measuring and Analyzing the Regularity of Human Gait