On the generalized distance in statistics