runningAverage functionality(uniform/gaussian) added for linescan