module GSL::Stats

Defined in:

gsl/maths/statistics/correlation.cr
gsl/maths/statistics/spherical.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.dir_2d(rng : Random | Nil = nil, *, trig_method : Bool = true) : Tuple(Float64, Float64) #

[View source]
def self.dir_3d(rng : Random | Nil = nil) : Tuple(Float64, Float64, Float64) #

[View source]
def self.dir_nd(n : Int, *, cache : Array(Float64) | Nil = nil, rng : Random | Nil = nil) : Array(Float64) #

[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]