Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 783 Bytes

ex_CallableNumericalModel.rst

File metadata and controls

20 lines (15 loc) · 783 Bytes

Example: Piecewise model using CallableNumericalModel

Below is an example of how to use the symfit.core.models.CallableNumericalModel. This class allows you to provide custom callables as your model, while still allowing clean interfacing with the symfit API.

These models also accept a mixture of symbolic and callable components, as will be demonstrated below. This allows the power-user great flexibility, since it is still easy to interface with symfit's constraints, minimizers, etc.

../../examples/callable_numerical_model.py

This is the resulting fit: