I need an algorithm to calculate the mean of a list of values. The values are some CPU times, some of these values are very different from the rest. I want to calculate the mean without these values. Anyone knows about an algorithm to make this??

Thank you.