Sha256: e87a0cf902f2d9fc823a261ddd5df1792e2e9aa1dbb050d31148dea10f37768a

Contents?: true

Size: 248 Bytes

Versions: 2735

Compression:

Stored size: 248 Bytes

Contents

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

Version data entries

2,735 entries across 2,685 versions & 45 rubygems

Version Path
zilla-0.2.0 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
ory-keto-client-0.11.0.alpha0 vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_id_ruby-0.62.44 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_organization_ruby-0.62.44 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_bank_ruby-0.62.44 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
mux_ruby-3.9.0 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_bank_ruby-0.62.43 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_organization_ruby-0.62.43 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_id_ruby-0.62.43 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_bank_ruby-0.62.41 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_organization_ruby-0.62.41 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_id_ruby-0.62.41 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_bank_ruby-0.62.40 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_id_ruby-0.62.40 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_organization_ruby-0.62.40 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_bank_ruby-0.62.39 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_organization_ruby-0.62.39 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_id_ruby-0.62.39 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
primary_connect_proto-0.19.0 vendor/bundle/ruby/3.0.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
cybrid_api_bank_ruby-0.62.38 vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb