pymodelfit.core.offset_model

pymodelfit.core.offset_model(model, offsetparname='C', offsetval=0)[source]

A convinience to generate a CompositeModel with an additive offset on the wrapped model (e.g. m(x)+C).

Parameters:
  • model (FunctionModel object or string) – the model to wrap (or a name of a model that will be created)
  • offsetparname (string) – name for the parameter controlling the additive offset value
  • offsetval (float) – The initial value for the offset parameter.
Returns:

a CompositeModel (or subclass) object

Previous topic

pymodelfit.core.get_model_instance

Next topic

pymodelfit.core.scale_model

This Page