module GSL::Stats

Defined in:

gsl/maths/statistics/correlation.cr

Class Method Summary

Class Method Detail

def self.correlation(vector1 : GSL::Vector, vector2 : GSL::Vector) #

computes the Pearson correlation coefficient between the datasets vector1 and vector2 which must both be of the same length.


[View source]
def self.spearman(vector1 : GSL::Vector, vector2 : GSL::Vector) #

computes the Spearman rank correlation coefficient between the datasets vector1 and vector2 which must both be of the same length.


[View source]