@mengxr I use `totalCnt - 1.0` here to compute sample variance.

Any other questions, feel free to inform me. :)