It seems that the formula of cross normalization is inconsistent with the implementation in code. Which is correct?