ADC Noise Reduction code please

Well, I'm sure a lot of people would find it useful to have a function that reads an analog input using ADC noise reduction

Why? Have you noticed a problem with analogRead?