examples:
Fit a gaussian to a beam profile to get the rms beam size. In this example, the
file beamProfile.sdds
is assumed to contain data to be fit in columns
x
and Intensity
.
sddsgenericfit beamProfile.sdds beamProfile.gfit -column=x,Intensity
``-equation=height x center - sqr 2 / sigma sqr / exp / baseline + y - sqr''
-variable=name=height,start=1,lower=0,upper=10,step=0.1
-variable=name=center,start=0,lower=-10,upper=10,step=0.1
-variable=name=sigma,start=1,lower=0.1,upper=10,step=0.1
-variable=name=baseline,start=0,lower=-1,upper=1,step=0.1
synopsis:
sddsgenericfit
[-pipe=[input][,output]] [inputfile] [outputfile]
-columns=x-name,y-name[,ySigma=sy-name]
-equation=string[,algebraic] [-target=value] [-tolerance=value]
[-simplex=[restarts=integer][,cycles=integer,][evaluations=integer]]
-variable=name=name,lowerLimit=value,upperLimit=value,stepsize=value,startingValue=value[,units=string][,heat=value]
[-variable=...] [-verbosity=integer] [-startFromPrevious]