Hello again:
I think you are referring to this
calculator that you announced in
this thread a while ago. In that web, line 17 is slow to execute when the numbers of wins and loses are large:
Code: Select all
pi[i + 1] = (pi[i + 1] + pi[i]) * 0.5;
In fact,
Lucas' method and my own method are identical if I am not wrong (and they are also valid and fast for your request). I have to do
strange things in my code because erf function is not implemeted in salflibc.dll, which uses my programme (or at least I do not know how use it).
gladius wrote:Very interesting, thanks Jesus. I will definitely take a look at the LOS calculations including draws.
Draws have a very small impact on LOS when the numbers of wins and loses are fixed. For example:
Code: Select all
LOS(+120100 =0 -119900) ~ 65.85% (0% of draws).
LOS(+120100 =60000 -119900) ~ 65.85% (20% of draws).
LOS(+120100 =160000 -119900) ~ 65.85% (40% of draws).
LOS(+120100 =360000 -119900) ~ 65.85% (60% of draws).
LOS(+120100 =960000 -119900) ~ 65.85% (80% of draws).
I say that draws are included because they appear in the formula I use, but they have very small impact (if any) in LOS with large numbers of wins and loses.
Summarizing, the formula written by Kai is perfect for your proposal:
Code: Select all
LOS = 0.5*(1 + erf{(wins - loses)/sqrt[2*(wins + loses)]})
Regards from Spain.
Ajedrecista.