Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Total Strokes Calculator
#8
If stroke rate is a constant (entered by the user), there is no reason to integrate. Record starting time, and whenever you want an expected strokes count:
expected_strokes = strokes_per_second * (time.time() - start_time).

If stroke rate is measured, it makes more sense to measure stroke count and compute stroke rate. As far as I know there is no way to measure stroke rate directly, so you are forced to count strokes and measure time and compute the derivative of stroke count over time. May as well use the accurate stroke counter instead of a messy computed stroke rate.
Reply


Messages In This Thread
Total Strokes Calculator - by marlonsmachado - Aug-02-2022, 01:10 AM
RE: Total Strokes Calculator - by jefsummers - Aug-02-2022, 11:48 AM
RE: Total Strokes Calculator - by marlonsmachado - Aug-02-2022, 12:51 PM
RE: Total Strokes Calculator - by DeaD_EyE - Aug-02-2022, 01:39 PM
RE: Total Strokes Calculator - by marlonsmachado - Aug-04-2022, 12:54 PM
RE: Total Strokes Calculator - by jefsummers - Aug-02-2022, 05:47 PM
RE: Total Strokes Calculator - by jefsummers - Aug-04-2022, 01:57 PM
RE: Total Strokes Calculator - by deanhystad - Aug-04-2022, 02:48 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020