Skip to content

Commit 04f0365

Browse files
authored
Merge pull request #1 from PDLPorters/fitgauss_err_codes
Document returned error codes in fitgauss1d
2 parents 5c2d29a + 9045d68 commit 04f0365

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Gaussian/gaussian.pd

+28
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ estimate of the FWHM is the length of the ndarray/3, so it might fail
6161
if the ndarray is too long. (This is non-robust anyway). Most data
6262
does just fine and this is a good default gaussian fitter.
6363

64+
The values of the error code $err correspond to:
65+
66+
=over 4
67+
68+
=item 0: successful fit
69+
70+
=item 1: internal problem with memory allocation
71+
72+
=item 2: insufficient number of data points
73+
74+
=item 3: fit did not converge
75+
76+
=back
77+
6478
SEE ALSO: fitgauss1dr() for fitting radial gaussians
6579

6680
=head2 fitgauss1dr
@@ -92,6 +106,20 @@ estimate of the FWHM is the length of the ndarray/3, so it might fail
92106
if the ndarray is too long. (This is non-robust anyway). Most data
93107
does just fine and this is a good default gaussian fitter.
94108

109+
The values of the error code $err correspond to:
110+
111+
=over 4
112+
113+
=item 0: successful fit
114+
115+
=item 1: internal problem with memory allocation
116+
117+
=item 2: insufficient number of data points
118+
119+
=item 3: fit did not converge
120+
121+
=back
122+
95123
SEE ALSO: fitgauss1d() to fit centre as well.
96124

97125
=cut

0 commit comments

Comments
 (0)