params = params[:-1]
return params
- def guess_scale(self, params, outqueue=None):
- """Guess the parameter scales.
-
- Notes
- -----
- We the scale as one tenth for each parameter.
- """
- offset_scale = 0.1
- left_slope_scale = 0.1
- kink_scale = 0.1
- right_slope_scale = 0.1
- scale = [offset_scale, left_slope_scale, kink_scale, right_slope_scale]
- if self.info['force zero non-contact slope'] == True:
- scale = scale[:-1]
- return scale
-
def fit(self, *args, **kwargs):
"""Fit the model to the data.