Calculates lineshape from power spectral density