FittableModel

Defines a model that can be fit

 

__init__(self, parameters, function, pre_fit=False, covariance=None): 

 

@property
parameters(self): 

 

@property
parameter_values(self): 

 

@property
parameter_names(self): 

 

@property
fitted(self): 

 

fit(self, xdata, ydata=None, fitter=None, **methopts): 

Fits the model to the data using scipy.optimize.curve_fit or a function that provides the same interface

  • points: Any
  • methopts: Any
  • :returns: _

 

get_parameter(self, name): 

Returns the fitted value of the parameter given by ‘name’

  • name: Any
  • :returns: _

 

__getitem__(self, item): 

 

evaluate(self, xdata): 

 

__call__(self, xdata): 

Feedback

Examples

Templates

Documentation