Scale2D

class sherpa.models.basic.Scale2D(name='scale2d')[source]

Bases: sherpa.models.basic.Const2D

A constant model for two-dimensional data.

This is a specialized form of the Const2D model where the integrate flag is turned off.

c0

The amplitude of the model.

Notes

The functional form of the model for points is:

f(x0, x1) = ampl

and for an integrated grid it is:

f(x0lo, x1lo, x0hi, x1hi) = ampl * (x0hi - x0lo)
                                 * (x1hi - x1lo)

This later case will only be used if the integrate attribute is set to True.

Attributes Summary

thawedparhardmaxes
thawedparhardmins
thawedparmaxes
thawedparmins
thawedpars

Methods Summary

apply(outer, \*otherargs, \*\*otherkwargs)
calc(\*args, \*\*kwargs)
get_center()
guess(dep, \*args, \*\*kwargs)
reset()
set_center(\*args, \*\*kwargs)
startup()
teardown()

Attributes Documentation

thawedparhardmaxes
thawedparhardmins
thawedparmaxes
thawedparmins
thawedpars

Methods Documentation

apply(outer, *otherargs, **otherkwargs)
calc(*args, **kwargs)
get_center()
guess(dep, *args, **kwargs)
reset()
set_center(*args, **kwargs)
startup()
teardown()