class GSL::MutableHistogram
- GSL::MutableHistogram
- GSL::AbstractHistogram
- Reference
- Object
Defined in:
gsl/base/histogram.crConstructors
- .new(min : Float64, max : Float64, bins : Int32)
- .new(data : Array(Float), bins : Array(Float))
- .new(bins : Array(Float64))
Instance Method Summary
- 
        #*(h : Histogram | MutableHistogram) : MutableHistogram
        
          Multiply the values of histograms with identical bins. 
- 
        #*(scale : Float64) : MutableHistogram
        
          This function multiplies the contents of the bins of them histogram by the constant scale. 
- 
        #+(h : Histogram | MutableHistogram) : MutableHistogram
        
          Add the values of histograms with identical bins. 
- 
        #+(offset : Float64) : MutableHistogram
        
          This function shifts the contents of the bins of the histogram by the constant offset. 
- 
        #-(h : Histogram | MutableHistogram) : MutableHistogram
        
          Subtract the values of histograms with identical bins. 
- 
        #/(h : Histogram | MutableHistogram) : MutableHistogram
        
          Multiply the values of histograms with identical bins. 
- #accumulate(x : Float64, weight : Float64)
- #increment(x : Float64)
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
Multiply the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.
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.
Add the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.
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.
Subtract the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.
Multiply the values of histograms with identical bins. This is an mutable operation, it return this instance with updated values.