TS++ library: time series library
|
aff::Series<T> ts::correlate | ( | const aff::ConstSeries< T > & | a, |
const aff::ConstSeries< T > & | b | ||
) |
Calculate crosscorrelation of two series.
The function evaluates
where the index ranges of the input series are and
From the second factor we conclude
and thus the index range of
is
For a given the range of summation index
is defined by the two conditions
and
a | ![]() |
b | ![]() |
Definition at line 75 of file correlate.h.