def METHOD_NAME(self):
    if not hasattr(self, "ultimate_"):
        raise AttributeError(
            "'"
            + self.__class__.__name__
            + "' object has no attribute 'full_expectation_'"
        )
    return _get_full_expectation(self.cdf_, self.ultimate_, self.X_.is_cumulative)