Last modified: December 2023

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/stephi1d.html
Jump to: Description · Example · ATTRIBUTES · Notes · Bugs · See Also


AHELP for CIAO 4.16 Sherpa

stephi1d

Context: models

Synopsis

One-dimensional step function.

Syntax

stephi1d

Description

The model is flat above xcut , where it is set to the ampl parameter, and zero below this.


Example

>>> create_model_component("stephi1d", "mdl")
>>> print(mdl)

Create a component of the stephi1d model and display its default parameters. The output is:

mdl
   Param        Type          Value          Min          Max      Units
   -----        ----          -----          ---          ---      -----
   mdl.xcut     thawed            0 -3.40282e+38  3.40282e+38           
   mdl.ampl     thawed            1            0  3.40282e+38           

ATTRIBUTES

The attributes for this object are:

Attribute Definition
xcut The position of the step.
ampl The amplitude of the step.

Notes

The functional form of the model for points is:

f(x) = ampl if x >= xcut
     = 0       otherwise

and for an integrated grid it is:

f(xlo,xhi) = ampl * (xhi - xlo)  if xlo >= xcut
           = ampl * (xhi - xcut) if xlo < xcut and xhi >= xcut
           = 0                   if xhi < xcut

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

models
box1d, const1d, delta1d, steplo1d