load_template_interpolator

sherpa.astro.ui.load_template_interpolator(name, interpolator_class, **kwargs)

Set the template interpolation scheme.

Parameters:
  • name (str)

  • interpolator_class – An interpolator class.

  • **kwargs – The arguments for the interpolator.

See also

load_template_model

Load a set of templates and use it as a model component.

Examples

Create an interpolator name that can be used as the template_interpolator_name argument to load_template_model.

>>> from sherpa.models import KNNInterpolator
>>> load_template_interpolator('myint', KNNInterpolator, k=4, order=3)