Calculating Mean and Absolute Deviation