#NEWLINE# def E_logqPhi( self ) : #NEWLINE# #INDENT# '\n    ' #NEWLINE# Elogq = np . zeros ( self . K ) #NEWLINE# for k in xrange ( self . K ) : #NEWLINE# #INDENT# Elogq [ k ] = self . comp [ k ] . E_log_pdf_Phi ( self . comp [ k ] , doNormConst = True ) #NEWLINE# #UNINDENT# return np . sum ( Elogq )