Changing averaging algo to igno max and mix of the data set.

Signed-off-by: jsdjayanga <jsdjayanga@yahoo.com>