Function vector_correlation (o2scl)

O2scl : Function List

template<class vec_t, class vec2_t>
double o2scl::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 and data2 .

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, class vec2_t>
double o2scl::vector_correlation(const vec_t &data1, const vec2_t &data2)

Pearson’s correlation.

This function computes the Pearson correlation coefficient between data1 and data2 .

This function produces the same results as gsl_stats_correlation().

If n is zero, this function will call the error handler.