Class: EloBrain::WinProbability::ProbabilityCalculation

Inherits:
Object
  • Object
show all
Defined in:
lib/elo_brain/win_probability/probability_calculation.rb

Instance Method Summary collapse

Instance Method Details

#call(difference_of_elo:) ⇒ Object



6
7
8
# File 'lib/elo_brain/win_probability/probability_calculation.rb', line 6

def call(difference_of_elo:)
  1.0 / (1.0 + 10.0**(-1.0 * difference_of_elo / 400.0))
end