Peakexponential: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
 
Line 32: Line 32:


The function is
The function is
* '''y(1) ''' = <math> {{x}_{1}}{{\operatorname{e}}^{-{x}_{2}}}</math> , 1xN
* '''y(1) ''' = <math> {{x}_{1}}{{\operatorname{e}}^{-{x}_{2}}}</math> , 1xN



Latest revision as of 10:09, 23 May 2023

Purpose

Outputs an Exponential function, Jacobian, and Hessian for a given set of input parameters and axis.

Synopsis

[y,y1,y2] = peakexponential(x,ax)

Description

Given a 2-element vector of parameters (x) and a vector of independent variables e.g., a wavelength or frequency axis (ax), PEAKEXPONENTIAL outputs an exponential function (y). If more than one output is requested, it also outputs the Jacobian (y1) and Hessian (y2). Derivatives are with respect to the parameters and are evaluated at (x). This function is called by PEAKFUNCTION.

Inputs

  • x = 2-element vector with parameters
  • x(1) = coefficient, and
  • x(2) = decay constant.
  • ax = vector of independent variables e.g., a wavelength or frequency axis with elements.

Outputs

  • y = vector with the exponential function.
  • y1 = matrix of the Jacobian of evaluated at (x).
  • y2 = matrix of the Hessian of evaluated at (x).

Algorithm

The function is

  • y(1) = , 1xN
  • y(2) = , 3xN
  • y(3) = , 3x3xN

Examples

%Make a single exponential function
ax = 0:0.1:100;
y = peakexponential([1 0.01],ax);
plot(ax,y)

See Also

peakfunction, peakgaussian, peaklorentzian, peaksigmoid, peakpvoigt1, peakpvoigt2, peakstruct