compute the spectral function with the setting of cui2012