fixed the (n-1) in formula
Merge https://github.com/fgoeddeke/rmseap