Put the calculation of the uncertainty of the average of time-series method as a function in a class