Box1D

class synphot.models.Box1D(amplitude=1, x_0=0, width=1, **kwargs)[source]

Bases: astropy.modeling.functional_models.Box1D

Same as astropy.modeling.functional_models.Box1D, except with sampleset defined.

Attributes Summary

param_names

Methods Summary

sampleset([step, minimal]) Return x array that samples the feature.

Attributes Documentation

param_names = ('amplitude', 'x_0', 'width')

Methods Documentation

sampleset(step=0.01, minimal=False)[source]

Return x array that samples the feature.

Parameters:
step : float

Distance of first and last points w.r.t. bounding box.

minimal : bool

Only return the minimal points needed to define the box; i.e., box edges and a point outside on each side.