Function vector_lagk_autocorr (o2scl)¶
-
template<class vec_t>
double o2scl::vector_lagk_autocorr(size_t n, const vec_t &data, size_t k, double mean)¶ Lag-k autocorrelation.
This function computes
\[ \left[ \sum_i \left(x_i - \mu\right) \left(x_{i-k} - \mu \right) \right] \left[ \sum_i \left(x_i - \mu\right)^2 \right]^{-1} \]If
n<=k
, this function will call the error handler.
-
template<class vec_t>
double o2scl::vector_lagk_autocorr(const vec_t &data, size_t k, double mean)¶ Lag-k autocorrelation.
This function computes
\[ \left[ \sum_i \left(x_i - \mu\right) \left(x_{i-k} - \mu \right) \right] \left[ \sum_i \left(x_i - \mu\right)^2 \right]^{-1} \]If
n<=k
, this function will call the error handler.
-
template<class vec_t>
double o2scl::vector_lagk_autocorr(size_t n, const vec_t &data, size_t k)¶ Lag-k autocorrelation.
This function computes
\[ \left[ \sum_i \left(x_i - \mu\right) \left(x_{i-k} - \mu \right) \right] \left[ \sum_i \left(x_i - \mu\right)^2 \right]^{-1} \]If
n<=k
, this function will call the error handler.
-
template<class vec_t>
double o2scl::vector_lagk_autocorr(const vec_t &data, size_t k)¶ Lag-k autocorrelation.
This function computes
\[ \left[ \sum_i \left(x_i - \mu\right) \left(x_{i-k} - \mu \right) \right] \left[ \sum_i \left(x_i - \mu\right)^2 \right]^{-1} \]If
n<=k
, this function will call the error handler.