class GSL::Histogram

Defined in:

gsl/base/histogram.cr

Constructors

Instance Method Summary

Instance methods inherited from class GSL::AbstractHistogram

bin(n : Int) : Float64 bin, clone : Histogram clone, equal_bins(h : AbstractHistogram) : Bool equal_bins, find(x : Float64) : UInt64 find, max_bin : UInt64 max_bin, max_val : Float64 max_val, mean : Float64 mean, min_bin : UInt64 min_bin, min_val : Float64 min_val, nbins nbins, range(n : Int) : Tuple(Float64, Float64) range, sigma : Float64 sigma, sum : Float64 sum

Constructor Detail

def self.new(data : Array(Float), bins : Array(Float)) #

[View source]
def self.new(data : Array(Float), bins : Int32) #

TODO case where data is empty


[View source]

Instance Method Detail

def *(scale : Float64) : Histogram #

This function multiplies the contents of the bins of them histogram by the constant scale. This is an immutable operation, it return a new Histogram without changing the originals


[View source]

Multiply the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals


[View source]
def +(offset : Float64) : Histogram #

This function shifts the contents of the bins of the histogram by the constant offset. This is an immutable operation, it return a new Histogram without changing the originals


[View source]

Add the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals


[View source]

Subtract the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals


[View source]

Multiply the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals


[View source]