Parameters
IEnumerable<T>
series
The series for computing the auto correlation.
int
lag
The lag in the series
Func<T, double>
f
The function used to evaluate the series.
Return
double
The auto correlation.