1. A method of detecting a position of a mark element on an object on a basis of a signal waveform of the mark element, said method comprising steps of: determining an extracting method of the signal waveform of the mark element; obtaining the signal waveform of the mark element using the extracting method; extracting at least two kinds of waveform feature values from the signal waveform which is obtained, the waveform feature values being parameters that characterize the signal waveform of the mark element; generating a function which corrects a shift amount between a true value indicating an ideal position of the mark element and a real position of the mark element; and correcting the shift amount on a basis of the function, wherein the function, which includes a product of the at least two kinds of waveform feature values, is generated using the at least two kinds of waveform feature values.