def METHOD_NAME(self, m, f=None):
    if self.data is None:
        raise Exception("data must be set before a residual can be calculated.")
    return self.simulation.METHOD_NAME(m, self.data.dobs, f=f)