class GSL::Histogram
- GSL::Histogram
- GSL::AbstractHistogram
- Reference
- Object
Defined in:
gsl/base/histogram.crConstructors
- .new(data : Array(Float), bins : Array(Float))
-
.new(data : Array(Float), bins : Int32)
TODO case where data is empty
Instance Method Summary
-
#*(scale : Float64) : Histogram
This function multiplies the contents of the bins of them histogram by the constant scale.
-
#*(h : Histogram | MutableHistogram) : Histogram
Multiply the values of histograms with identical bins.
-
#+(offset : Float64) : Histogram
This function shifts the contents of the bins of the histogram by the constant offset.
-
#+(h : Histogram | MutableHistogram) : Histogram
Add the values of histograms with identical bins.
-
#-(h : Histogram | MutableHistogram) : Histogram
Subtract the values of histograms with identical bins.
-
#/(h : Histogram | MutableHistogram) : Histogram
Multiply the values of histograms with identical bins.
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
Instance Method Detail
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
Multiply the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals
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
Add the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals
Subtract the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals
Multiply the values of histograms with identical bins. This is an immutable operation, it return a new Histogram without changing the originals