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
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib/ruby-progressbar/calculators/running_average.rb
kinetic_sdk-0.1.1 gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/running_average.rb
progressbar-1.10.1 lib/ruby-progressbar/calculators/running_average.rb
ruby-progressbar-1.10.1 lib/ruby-progressbar/calculators/running_average.rb
cspeezy_palindrome-0.3.0 path/ruby/2.6.0/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
cspeezy_palindrome-0.2.0 path/ruby/2.6.0/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
cspeezy_palindrome-0.1.0 path/ruby/2.6.0/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
steenfest_palindrome-0.1.2 ruby/2.5/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
steenfest_palindrome-0.1.1b ruby/2.5/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
nullifyable-0.1.0 vendor/bundle/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
dmurphy_palindrome-0.1.0 vendor/cache/ruby/2.3.0/gems/dmurphy_palindrome-0.1.0/vendor/cache/ruby/2.3.0/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
dmurphy_palindrome-0.1.0 vendor/cache/ruby/2.3.0/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.10.0/lib/ruby-progressbar/calculators/running_average.rb