Sha256: a9b34d6b83167f569d9c47e78bcb7281de2389596ed7845e019846d7a82a93ff
Contents?: true
Size: 240 Bytes
Versions: 20
Compression:
Stored size: 240 Bytes
Contents
class ProgressBar class RunningAverageCalculator 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
Version data entries
20 entries across 20 versions & 3 rubygems