compute the spectral function with the setting of colangelo2012