Suppose I've traveled a cumulative distance $D$= 39.190 meters in time $T$ = 2.00 secs.
My average speed is then simply:
$$ S = \frac{D}{T} = \frac{39.190\ m}{2.00\ sec} = 19.595\ \frac{m}{sec}. $$
Suppose in the next observation interval, I go $d$ = 0.788 meters in $t$ = 0.02 seconds. My new average speed is then:
$$ S' = \frac{D'}{T'} = \frac{(D + d)\ m}{(T + t)\ sec} = \frac{(39.190 + 0.788)\ m}{(2.00+0.02)\ sec} = 19.791\ \frac{m}{sec} $$
I'm trying to find a way to calculate $S'$ from $S, d, \textrm{and}\ t$. That is, I want to derive a function $f$ such that $S' = f(S, d, t)$.
If I assume that the speed $S$ is normalized to be $S = \frac{S\ m}{1\ sec}$, then
$$ S' = \frac{(S + d)\ m}{(1 + t)\ sec} $$
However, I don't get the correct answer for my example above where $S = 19.595 \frac{m}{sec}, d = 0.788\ m, \textrm{and}\ t = 0.02\ sec$.
$$ S' = \frac{19.595 + 0.788}{1 + 0.2} = 19.983 $$ which is different from the $19.791$ that I computed above.
Can anyone please help?

There cannot be a function $f$ such that $S'=f(S,d,t).$ Suppose we do one experiment where we get $D=2,T=1,d=1$ and $t=1$. Then $S=2$ and $S'=3/2$. Now suppose we do a second experiment and get $D=4, T=2, d=1$ and $t=1$. Then $S=2$ and $S'=5/3$.
The values of $S,d,$ and $t$ are the same in the first and second experiments, but the value of $S'$ is different.