This looks unwise, but if you must do this I think more information is needed, like where does this function come from, what does it represent and exactly how are you going to use the smoothed version.