def model(self, p, x):
"""
A parameteric model to fit y = f(x, p)
This can be overridden in a class that inherits from this one to make a new model
Parameters:
===========
- p: Any iterable
The model parameters
- x: numpy.ndarray
The dependent variable
Returns:
========
A model at each of the x locations
"""
return np.poly1d(p)(x)
评论列表
文章目录