The sherpa.models.regrid module

Evaluate a model on a different grid to the requested one.

This is intended to support convolution-style models, where the convolved model should be evaluated on a different grid to the data - e.g. a larger grid, since the convolution will account for signal outside the data range - and then be regridded to match the desired grid.

Classes

Axis(lo, hi)
EvaluationSpace1D([x, xhi])
EvaluationSpace2D([x, y, xhi, yhi])
ModelDomainRegridder1D([evaluation_space, name]) Allow 1D models to be evaluated on a different grid.
ModelDomainRegridder2D([evaluation_space, name]) Allow 2D models to be evaluated on a different grid.

Functions

rebin_2d(y, custom_space, requested_space)
rebin_flux(array[, dimensions, scale]) Rebin the array, conserving flux.

Class Inheritance Diagram

Inheritance diagram of Axis, EvaluationSpace1D, EvaluationSpace2D, ModelDomainRegridder1D, ModelDomainRegridder2D