damonhook / aos-statshammer

A tool for calculating and comparing damage outputs for Warhammer Age of Sigmar units.
https://aos-statshammer.herokuapp.com/
MIT License
18 stars 10 forks source link

Programatically determine the max (and not rely on simulations for it) #30

Closed damonhook closed 4 years ago

damonhook commented 4 years ago

When you are dealing with the amount of possible permutations as we deal with here (up in the billions, or even higher, so we're talking <0.00001% sometimes), the chances of actually rolling the "perfect" max is close to nothing. This means that in the sample set (simulations) these values would almost never occur naturally and thus the sample max usually deviates heavily from the population max.

If instead we calculate the actual population max value. We can then extrapolate the data (marking as probability 0.00, as we only do 2 decimal place accuracy). This would improve the accuracy of the drawn graphs