I've recently come across this formula from an ITU-T standard in a project that I'm working on.
The application of the formula is to compare two vectors containing some per frame statistics from two very similar video signals, and try to find any evidence of a delay of $n$ frames between them, i.e. that the vectors contain similar values at an offset of $n$ positions.
The define the measure like this:
Let $X[t]$ and $Y[t]$ be two vectors with the length $nx$ and $ny$. Then, a normalized product-moment correlation is given by: $$ \widetilde{r}_{xy}[n] = \dfrac{1}{\sqrt{\sum_{t=0}^{nx-1}(X[t]-\overline\chi) \sum_{t=0}^{nx-1}(Y[t]-\overline\xi)}}\sum_{t=-nx}^{nx}(X[t]-\overline\chi)(Y[t+n]-\overline\xi) $$ with $$ \overline\chi = \dfrac{1}{xStop-xStart+1}\sum_{t=xStart}^{xStop}X[t] $$ and $$ \overline\xi = \dfrac{1}{yStop-yStart+1}\sum_{t=yStart}^{yStop}Y[t] $$ where $\{xy\}Start$ is the index of the first and $\{xy\}Stop$ the index of the last non-zero value within the vector.
The second summation that ranges $t \in [-nx, nx]$ appears strange to me - how can I index $X[t]$ with negative values for $t$ from the first half of the range? Similarly, depending on the value of $n$, the index $t+n$ may easily fall outside the valid range of $Y[t]$.
I can't figure out what the authors' intentions are here. Does anyone understand how to deal with this out of range indexing and still getting a useful result? Does it make sense to substiute all out of range values with $0$, and how would that affect the result?
Note: The resulting vector (I presume) is to contain a measure of how well the vector correlate offset $n$ spaces - we try a range of different $n$-s and see which one is best, i.e. yields the highest value. Also, in my context, $nx$ and $ny$ are always equal.
EDIT I'll add that the authors' use of this is the following
An estimate of the delay between the vectors is given by: $$delay(X[t],Y[T])=\mathop{\text{argmax}}_n(\widetilde{r}_{xy}[n])$$ The value $$corrm(X[t],Y[T])=\mathop{\text{max}}_n(\widetilde{r}_{xy}[n])$$ is the similarity measure and represents an estimate of the accuracy of the estimated delay.