FlatTopPeak

Description

A flat top peak function is defined as:

y=scale(erfc((centre0.5widthx)/endGrad)erfc((centre+0.5widthx)/endGrad))+background
../../_images/FlatTopPeakFnExample.png

Properties (fitting parameters)

Name

Default

Description

Scale

-2400.0

The height of the mesa.

Centre

50.0

The location of the middle of the mesa.

EndGrad

3.0

The width of the transition between the base and the peak.

Background

2500.0

The baseline below the mesa.

Width

20.0

The breadth of the top of the mesa.

Categories: FitFunctions | SANS

Source

Python: FlatTopPeak.py