Last modified: December 2018

URL: http://cxc.harvard.edu/sherpa/ahelp/const1d.html
Jump to: · Example · ATTRIBUTES · Notes · Bugs · See Also


AHELP for CIAO 4.11 Sherpa v1

const1d

Context: models

Synopsis

A constant model for one-dimensional data.

Syntax

const1d

Example

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

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

mdl
   Param        Type          Value          Min          Max      Units
   -----        ----          -----          ---          ---      -----
   mdl.c0       thawed            1 -3.40282e+38  3.40282e+38           

ATTRIBUTES

The attribute for this object is:

c0

The amplitude of the model.

Notes

The functional form of the model for points is:

f(x) = ampl

and for an integrated grid it is:

f(xlo,xhi) = ampl * (xhi - xlo)

Bugs

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

See Also

models
box1d, const2d, delta1d, scale1d, stephi1d, steplo1d