Implemented calcMeanNoOutliers function in IR

This is now called by read()