<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def spectrum_loglike(self, specType, params, scale=1E3):
 """ return the log-likelihood for a particular spectrum Parameters specTypes : str The type of spectrum to try params : array-like The spectral parameters scale : float The energy scale or 'pivot' energy """

        sfn = self.create_functor(specType, scale)[0]
        return self.__call__(sfn(params))