pymodelfit.core.scale_model

pymodelfit.core.scale_model(model, scaleparname='A', scaleval=1)[source]

A convinience function to generate a CompositeModel with a scaling factor multiplying the wrapped model.

A convinience to generate a CompositeModel with a scaling factor multiplying the wrapped model (e.g. A m(x)).

Parameters:
  • model (FunctionModel object or string) – the model to wrap (or a name of a model that will be created)
  • scaleparname (string) – name for the parameter controlling the scaling factor
  • scaleval (float) – The initial value for the scale parameter.
Returns:

a CompositeModel (or subclass) object

Previous topic

pymodelfit.core.offset_model

Next topic

pymodelfit.core.scale_and_offset_model

This Page