.. _func-FlatTopPeak: =========== FlatTopPeak =========== .. index:: FlatTopPeak Description ----------- A flat top peak function is defined as: .. math:: y = scale * (erfc((centre - 0.5 * width - x) / endGrad) - erfc((centre + 0.5 * width - x) / endGrad)) + background .. image:: ../../images/FlatTopPeakFnExample.png :width: 600px :align: center :height: 450px .. attributes:: .. properties:: .. categories:: .. sourcelink::