This function seems more useful to me. I'm less clear why one would less normalization here.

For performance, if you're going to make a pass through the data to compute `sumsq`, we should be determining `max(s2)` and `min(s2)` during that pass.