1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE Module SYSTEM "file:/Repository/Level2/Soft/ProC/moduledef.dtd">
5
<modulename name="kstfit_general_levenberg_marquardt" readableName="Fit any non-linear function"/>
6
<author name="Nicolas Brisset"/>
7
<description text="Generates a fit for a set of data using the Levenberg-Marquardt algorithm."/>
8
<version minor="1" major="0"/>
10
<state devstate="beta"/>
15
<table type="float" name="X Array" descr="The array of X coordinates" />
18
<table type="float" name="Y Array" descr="The array of Y coordinates" />
21
<string name="Formula y=" descr="The function to fit" default="a*x^3 + b*x^2 - c*x + d"/>
24
<string name="Parameters" descr="Comma-separated list of parameter names" default="a, b, c, d"/>
27
<string name="Init values" descr="Comma-separated list of initial parameter values" default="1, 1, 1, 1"/>
30
<float name="Tolerance" descr="Tolerance" default="1e-4"/>
33
<float name="Max iterations" descr="The maximum number of iterations allowed" default="200"/>
37
<table type="float" name="Y Fitted" descr="The array of fitted Y values" />
40
<table type="floatNonVector" name="Parameters" descr="The parameter values of the fit" />
43
<table type="floatNonVector" name="Covariance" descr="The covariance matrix of the fit" />