code: def EI_gaussian(mean, var, thresh):
      """Expected Improvement of Gaussian over threshold
  
      (estimated analytically)
      """
      sigma = np.sqrt(var)
      score = old_div((mean - thresh), sigma)
      n = scipy.stats.norm
      return sigma * (score * n.cdf(score) + n.pdf(score))
  
file_path: auptimizer/src/aup/Proposer/hyperopt/criteria.py
imports: from __future__ import division
  from past.utils import old_div
  import numpy
  import scipy.stats
label_desc: Use image node_id 3 for calling a global function with example usage: EI_gaussian(mean, var, thresh) and returns: unknown