An Automatic Selection Method of Integration Function