1. A position detecting method comprising the steps of: forming an image of a mark on a sensor; performing a first process that processes a raw signal obtained from the sensor with plural parameters; performing a second process that determines an edge of a signal processed by the first process for each parameter; determining a parameter from a result of the second process obtained for each parameter; and calculating a position of the mark based on a determined parameter.