Sha256: ca4c0dca29f3621b7d4dff6c2a8387ebc8a323894babff9f857d86d48d5938fe

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

# Take the exact average over all paces over the set of
# run intervals.
module Stressfactor
  class RawPaceStrategy < PaceStrategy

    def self.calculate_for_interval(interval)
      interval.time(units: :minutes) / interval.distance
    end

    def calculate
      AveragePaceAccumulator.new(intervals).average_pace(strategy: :raw)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stressfactor-0.0.1 lib/stressfactor/raw_pace_strategy.rb