Closed jimmykane closed 4 years ago
So the problem is more conceptual.
Speed [10, 0] = avg 5ms = 200s pace Pace [100, infinity] = avg 50s which is incorrect
One solution is to convert the pace to speed again (if not derived from speed already_ and do in that domain the avg calc
Closed via 92d77f0940ca269f23b9f8e41623cbdb28aaa4f3
Hi @thomaschampagne I might need your help here.
I am having some calc inconsistency when trying to figure out some averages. Apparently I am doing something wrong, but I cannot figure it out.
I have an array of speed samples example:
Now in order to find the average speed I do
The result is: (m/s)
Now to convert to pace I do
So 374.41964954320787 seconds
Now if I first convert that array of speed values to pace with the same conversion like
I get this array
Now running the save AVG calculation on that
Like this
.filter(v => v !== Infinity).reduce(function(acc, val) { return acc + val; }, 0)/100
The AVG pace of those samples is:
Which is not the same as converting the AVG SPEED to Pace
What can I be doing wrong? (Working on GAP)