getrmse function

getrmse calculates the rmse of the input 'invar' series