Fit a curve to X,Y data. These routine are used in the high level script for fitting data in table files name xyfitter. Actually, xyfitter performs handling of the table file, error checkeing, etc.... , and the cod that actually calls the clcf_ routines is curve_fit.
clcf_line.sh --help
Usage: clcf_line.sh X.dat Y.dat 30
arg1 - name of input file with X values (No data header)
arg2 - name of input file with Y values (No data header)
arg3 - number of points in fit curve file (clcf_line.fitcurve)
To get a list of available curves:
% curve_fit L
% cat gen_curve.Available_Functions
Function types recognized by gen_curve.sh
Last update: Oct 2018
The first argument to gen_curve is the function
paramter. Recognized function values are:
line == y=a+bx line
polyk == polynomial [k = number of terms]
poly4: y = a _ b*x + c*x^2 + d*X^4
natexp == natural expoenent [y=a*exp(bx)]
r4sph == r**0.25 spheroid, I = a * exp(b * x^0.25)
gauss3p == gaussian (a1=Io,a2=Xcenter,a3=sigma)
expdisk == expoenent disk [y=a1*exp(-x/a2)]
r4bulge == r1/4 bulge (a1=Ieff, a2=Reff)
Recognized function names:
line, poly1, poly2, poly3, poly4, poly5,
ploy6, poly7, poly8, poly9, poly10,
natexp, r4sph, gauss3p, expdisk, r4bulge
Function types recognized by gen_curve.sh
Last update: Oct 2018
The first argument to gen_curve is the function
paramter. Recognized function values are:
line == y=a+bx line
polyk == polynomial [k = number of terms]
poly4: y = a _ b*x + c*x^2 + d*X^4
natexp == natural expoenent [y=a*exp(bx)]
r4sph == r**0.25 spheroid, I = a * exp(b * x^0.25)
gauss3p == gaussian (a1=Io,a2=Xcenter,a3=sigma)
expdisk == expoenent disk [y=a1*exp(-x/a2)]
r4bulge == r1/4 bulge (a1=Ieff, a2=Reff)
Recognized function names:
line, poly1, poly2, poly3, poly4, poly5,
ploy6, poly7, poly8, poly9, poly10,
natexp, r4sph, gauss3p, expdisk, r4bulge