abstract class GSL::AbstractHistogram

Direct Known Subclasses

Defined in:

gsl/base/histogram.cr

Instance Method Summary

Instance Method Detail

def bin(n : Int) : Float64 #

[View source]
def clone : Histogram #

Returns an exact copy of this histogram


[View source]
def equal_bins(h : AbstractHistogram) : Bool #

This function returns true if the all of the individual bin ranges of the two histograms are identical, and false otherwise.


[View source]
def find(x : Float64) : UInt64 #

[View source]
def max_bin : UInt64 #

This function returns the index of the bin containing the maximum value. In the case where several bins contain the same maximum value the smallest index is returned.


[View source]
def max_val : Float64 #

This function returns the maximum value contained in the histogram bins.


[View source]
def mean : Float64 #

This function returns the mean of the histogrammed variable, where the histogram is regarded as a probability distribution. Negative bin values are ignored for the purposes of this calculation. The accuracy of the result is limited by the bin width.


[View source]
def min_bin : UInt64 #

This function returns the index of the bin containing the minimum value. In the case where several bins contain the same maximum value the smallest index is returned.


[View source]
def min_val : Float64 #

This function returns the minimum value contained in the histogram bins.


[View source]
def nbins #

[View source]
def range(n : Int) : Tuple(Float64, Float64) #

[View source]
def sigma : Float64 #

This function returns the standard deviation of the histogrammed variable, where the histogram is regarded as a probability distribution. Negative bin values are ignored for the purposes of this calculation. The accuracy of the result is limited by the bin width.


[View source]
def sum : Float64 #

This function returns the sum of all bin values. Negative bin values are included in the sum.


[View source]