#NEWLINE# def CalculateModelPredictions( self , inCoeffs , inDataCacheDictionary ) : #NEWLINE# #INDENT# x_in = inDataCacheDictionary [ 'X' ] #NEWLINE# A = inCoeffs [ 0 ] #NEWLINE# B = inCoeffs [ 1 ] #NEWLINE# C = inCoeffs [ 2 ] #NEWLINE# G = inCoeffs [ 3 ] #NEWLINE# try : #NEWLINE# #INDENT# temp = ( ( A + ( B * ( x_in - C ) ) ) + ( ( 0.5 * G ) * numpy . square ( ( x_in - C ) ) ) ) #NEWLINE# return self . extendedVersionHandler . GetAdditionalModelPredictions ( temp , inCoeffs , inDataCacheDictionary , self ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# return ( numpy . ones ( len ( G [ 'DependentData' ] ) ) * 1e+300 )