Functions vector_correlation¶
-
template<class
vec_t
, classvec2_t
>
doubleo2scl
::
vector_correlation
(size_t n, const vec_t &data1, const vec2_t &data2)¶ Pearson’s correlation.
This function computes the Pearson correlation coefficient between
data1
anddata2
.This function produces the same results as
gsl_stats_correlation()
.If
n
is zero, this function will call the error handler.
-
template<class
vec_t
, classvec2_t
>
doubleo2scl
::
vector_correlation
(const vec_t &data1, const vec2_t &data2)¶ Pearson’s correlation.
This function computes the Pearson correlation coefficient between
data1
anddata2
.This function produces the same results as
gsl_stats_correlation()
.If
n
is zero, this function will call the error handler.