halvnykterist / rating-update

Ratings for Guilty Gear: Strive
MIT License
115 stars 23 forks source link

`/api/player_rating/` returns float rating #19

Closed optix2000 closed 2 years ago

optix2000 commented 2 years ago

Been poking around about how to inject ratings in totsugeki.

http://ratingupdate.info/api/player_rating/2ED5D216E0E9414/ZA returns

{"value":5.110550664616985,"deviation":0.2068578102309275,"volatility":0.020502236249574934}

How can I convert this to the 1500-normalized rating? (eg 2388 ±72)

halvnykterist commented 2 years ago

Sorry I didn't notice this before! The conversion scale is multiplying by 173 and adding 1500. For deviation it's multiplied by 2 * 173.

However, there's a pretty big update in the pipeline that'll switch the website to be natively using the Glicko-1 scale, so once that's released this API path will return ratings in the same scale as the website (although deviations will still have to be doubled to show 95% confidence)

halvnykterist commented 2 years ago

That new update is out! You'll still need to multiply deviation by 2 if you want to match what's shown on the website, but the multiplier is gone.

optix2000 commented 2 years ago

Noice. I'll shoot you a build of totsugeki in the next week or so with the ratings working.