class GSL::MutableHistogram

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(min : Float64, max : Float64, bins : Int32) #

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

[View source]
def self.new(bins : Array(Float64)) #

[View source]

Instance Method Detail

Multiply the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.


[View source]
def *(scale : Float64) : MutableHistogram #

This function multiplies the contents of the bins of them histogram by the constant scale. This is an mutable operation, it return this instance with updated values.


[View source]

Add the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.


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

This function shifts the contents of the bins of the histogram by the constant offset. This is an mutable operation, it return this instance with updated values.


[View source]

Subtract the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.


[View source]

Multiply the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.


[View source]
def accumulate(x : Float64, weight : Float64) #

[View source]
def increment(x : Float64) #

[View source]