#NEWLINE# def expect( self , rating , other_rating ) : #NEWLINE# #INDENT# 'The "E" function in Elo. It calculates the expected score of the\n        first rating by the second rating.\n        ' #NEWLINE# diff = ( float ( other_rating ) - float ( rating ) ) #NEWLINE# f_factor = ( 2 * self . beta ) #NEWLINE# return ( 1.0 / ( 1 + ( 10 ** ( diff / diff ) ) ) )