ml-peak-shape-generator
    Preparing search index...

    Class PseudoVoigtTCH

    TCH-style pseudo-Voigt where gaussian and lorentzian widths are independent. The effective fwhm and mixing parameter mu are derived from fwhmG and fwhmL via the Thompson–Cox–Hastings approximation.

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Analytical partial derivatives of fct at x, with respect to x and to each shape parameter (in the same order as getParameters()). Every shape provides a closed-form Jacobian, so consumers (e.g. curve fitting) can use it directly instead of numerical differentiation.

      Parameters

      • x: number

        position at which to evaluate the derivatives.

      Returns Shape1DDerivative

    • Return a parameterized function of a gaussian shape (see README for equation).

      Parameters

      • x: number

      Returns number

      • the y value of gaussian with the current parameters.