A computer-readable medium embodying a program of instructions for execution by a computer to perform a method for calculation of a correlation value corresponding to a frequency error, comprising:
- a 0-th degree correlation step for taking, to output, a correlation between a reference signal and a measurement signal;
- an n-th degree correlation step including a frequency addition calculator for calculating a frequency component addition signal having a frequency component added to the reference signal, and a correlation calculator for taking, to output, a correlation between the frequency component addition signal and the measurement signal, wherein n is a integer equal or greater than two;
- and
- an addition step for adding the correlation of the 0-th degree correlation step and the correlation of the n-th degree correlation step, and outputting the correlation value even when the frequency error is large.