hunterlan / WargamingStatistics

Unofficial bot for discord to show the statistic of player in World of Tanks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write function WN8

hunterlan opened this issue · comments

Write the function, which calculate WN8.

There is formula:
WN8 = 980*rDAMAGEc + 210*rDAMAGEc*rFRAGc + 155*rFRAGc*rSPOTc + 75*rDEFc*rFRAGc + 145*MIN(1.8,rWINc)

Where:

  • rDAMAGE = avgDmg / expDmg
  • rSPOT = avgSpot / expSpot
  • rFRAG = avgFrag / expFrag
  • rDEF = avgDef / expDef
  • rWIN = avgWinRate / expWinRate

rWINc = max(0, (rWIN - 0.71) / (1 - 0.71) )
rDAMAGEc = max(0, (rDAMAGE - 0.22) / (1 - 0.22) )
rFRAGc = max(0, min(rDAMAGEc + 0.2, (rFRAG - 0.12) / (1 - 0.12)))
rSPOTc = max(0, min(rDAMAGEc + 0.1, (rSPOT - 0.38) / (1 - 0.38)))
rDEFc = max(0, min(rDAMAGEc + 0.1, (rDEF - 0.10) / (1 - 0.10)))

non actual