Written by Amir Shamaei [email protected] 2021
The algorithm is based on the "Automatic frequency and phase alignment of in vivo J-difference-edited MR spectra by frequency domain correlation" paper. The authors of the paper find the maximum using manual grid search. But here, the problem is converted to a non-linear minimization problem which can be solved by direct search or Newton family methods.
FPCcorr(refrence signal, data(number of points, number of signals), method("fminunc" or "fminsearch"), range(in points, e.g: 1:1:1000), dwelltime, visus(true or false) )
European Union's Horizon 2020 research and innovation program under the Marie Sklodowska-Curie grant agreement No 813120 (INSPiRE-MED)