logEI_gaussian avoids div-by-0 after underfow