Function vector_acor (o2scl)¶
-
template<class vec_t>
void o2scl::vector_acor(size_t n, vec_t &v, double &mean, double &sigma, double &tau, int verbose = 0, size_t tau_max = 2, size_t win_mult = 5, size_t max_lag = 40, size_t min_fac = 5)¶ Compute the autocorrelation length using Goodman’s algorithm and the first
n
elements of the vectorv
.
-
template<class vec_t>
void o2scl::vector_acor(vec_t &v, double &mean, double &sigma, double &tau, int verbose = 0, size_t tau_max = 2, size_t win_mult = 5, size_t max_lag = 40, size_t min_fac = 5)¶ Compute the autocorrelation length using Goodman’s algorithm from
acor
.Note
This function does not leave the vector
v
unchanged.