def METHOD_NAME(self, x):
    """ See :meth:`LogPDF.evaluateS1()`. """
    try:
        val = self._log_prob(self._data, x, adjust_transform=True)
        dp = self._log_prob_grad(self._data, x, adjust_transform=True)
        return val, np.asarray(dp)
    except (RuntimeError, ValueError) as e:
        warnings.warn(
            'Error encountered when evaluating Stan LogPDF: ' + str(e))
        return -np.inf, np.ones(self._n_parameters)