[DELTA,MAXVAL] = may2011_interpolateparabolic(R,MAXIDX);
|R||detection function [nSamples x nChan]|
|MAXIDX||initial maximum estimate (maximum argument(index) of R).|
|DELTA||fractional part of maximum index [nIdx x 1] | [nChan x 1]|
|RHAT||amplitude of estimated maximum [nIdx x 1] | [nChan x 1]|
In case R is single channel data, interpolation can be performed at multiple indices -> MAXIDX [nIdx x 1]. Otherwise, if nChannels > 1, interpolation is performed at one index per channel. So the dimension of MAXIDX must correspond to the number of channels in R -> MAXIDX [nChan x 1]
Developed with Matlab 126.96.36.1997 (R2007a).