Class: EloBrain::EloCalculations::Winner
- Inherits:
-
Variation
- Object
- Variation
- EloBrain::EloCalculations::Winner
show all
- Defined in:
- lib/elo_brain/elo_calculations/winner.rb
Constant Summary
Constants inherited
from Variation
Variation::MAX_PROBABILITY
Instance Method Summary
collapse
Instance Method Details
#new_elo(elo:, development_coefficient:, win_probability:) ⇒ Object
6
7
8
|
# File 'lib/elo_brain/elo_calculations/winner.rb', line 6
def new_elo(elo:, development_coefficient:, win_probability:)
elo + development_coefficient * (MAX_PROBABILITY - win_probability)
end
|