this is for holding javascript data
João Paulo Pesce edited untitled.tex
about 10 years ago
Commit id: 6bd5d72b39cfae16a985fe283e681e8992511439
deletions | additions
diff --git a/untitled.tex b/untitled.tex
index d92e474..b4c8e99 100644
--- a/untitled.tex
+++ b/untitled.tex
...
We need a formula that, given the distance of the player's answer and the point shown, returns a score from 0 to 100 that (ideally) reflects the user's knowledge of the city.
We start with the premise that, if the user is really close to the right place, he should not be penalized a lot. In the same sense, it gets to a point that if his answer is far away or even farther way, there's little difference in his knowledge of the place.
So for, For example, if an answer is 10 or 20 meters away from the right place, the player should get very similar scores. And if the answer is 3000 meters of 3500 meters away he should also get very similar
scores. scores, even thought the same difference of 500 meters in the other situation would make a huge difference.
So we come up with the following sigmoid
function: function, where $S$ is the score and $d$ the distance between the right place and the player's answer:
\begin{equation}
S =
\frac{100}{1+{x^4}} \frac{100}{1+{d^4}}
\end{equation}
\begin{figure}[h!]
\centering
\includegraphics[width=0.5\textwidth]{images/eq1.pdf}
\end{figure}