def METHOD_NAME(self, factor):
    self.parameter.factor = factor
    if self.reoptimize:
        optimize_scipy(self.parameters, self.function, method="L-BFGS-B")
    value = self.function() - self.stat_null - self.ts_diff
    return value