module Statistics

Defined in:

gsl/base/statistics.cr
gsl/maths/statistics/distributions.cr

Class Method Summary

Class Method Detail

def self.cumulative_sum(data : Array(Float64)) : Array(Float64) #

[View source]
def self.linspace(s : Float64, e : Float64, num : Int) : Array(Float64) #

returns an equally space interval starting from s and ending in e (inclusive)

linspace(1.0, 10.0, 10) # => [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]

[View source]
def self.mean(data : Array(Float64)) : Float64 #

[View source]
def self.normalise(data : Array(Float64)) : Array(Float64) #

[View source]