Sha256: 179b9479f3a95d458267f27592e4307494f15d85ed72b773ac2105b4fbb5b9dd

Contents?: true

Size: 217 Bytes

Versions: 16

Compression:

Stored size: 217 Bytes

Contents

class   ProgressBar
module  Calculators
class   SmoothedAverage
  def self.calculate(current_average, new_value_to_average, rate)
    (new_value_to_average * (1.0 - rate)) + (current_average * rate)
  end
end
end
end

Version data entries

16 entries across 16 versions & 5 rubygems

Version Path
cybrid_api_organization_ruby-0.62.69 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_bank_ruby-0.62.69 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_id_ruby-0.62.69 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_bank_ruby-0.62.68 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_id_ruby-0.62.68 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_organization_ruby-0.62.68 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_bank_ruby-0.62.67 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_id_ruby-0.62.67 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_organization_ruby-0.62.67 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_id_ruby-0.62.66 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_bank_ruby-0.62.66 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
cybrid_api_organization_ruby-0.62.66 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
progressbar-1.13.0rc1 lib/ruby-progressbar/calculators/smoothed_average.rb
progressbar-1.12.0 lib/ruby-progressbar/calculators/smoothed_average.rb
ruby-progressbar-1.13.0rc1 lib/ruby-progressbar/calculators/smoothed_average.rb
ruby-progressbar-1.12.0 lib/ruby-progressbar/calculators/smoothed_average.rb