fit_dms - tpcclib 0.8.2 © 2026 by Turku PET Centre
Fitting of the sum of surge functions and delay time
to time-activity curves (TACs).
Function:
f(x) = Sum of Ai*(x-dt)*exp(-Ki*(x-dt)) where i=1..N
Usage: fit_dms [Options] tacfile [parfile]
Options:
-n=<value>
Maximum number of surge functions (1<=n<=10); by default 5.
-kMax=<value>
Maximum K value (kmax>kmin). By default 10.0.
-kMin=<value>
Minimum K value (>0). By default, kMax*1.0E-10.
-bfnr=<value>
Number of basis functions, used in determination of initial parameter
estimates and number of exponentials for nonlinear fitting;
default is 500.
-dt=<min,max,step> | -dt=delay
The range and step size of precision of time delay estimation, or
fixed delay time.
-w1
All weights are set to 1.0 (no weighting); by default, weights in
data file are used, if available.
-wf
Weight by sampling interval.
-nllsq | -llsq
Non-linear LSQ fit (default), or only linear LSQ fit; In case of NLLSQ,
LLSQ is still performed first to obtain initial parameter values.
-svg=<Filename>
Fitted and measured TACs are plotted in specified SVG file.
-fit=<Filename>
Fitted TACs are written in specified TAC file.
-h, --help
Display usage information on standard output and exit.
-v, --version
Display version and compile information on standard output and exit.
-d[n], --debug[=n], --verbose[=n]
Set the level (n) of debugging messages and listings.
-q, --quiet
Suppress displaying normal results on standard output.
-s, --silent
Suppress displaying anything except errors.
Function parameters are written the format determined by file name extension.
PET time frames are used in fitting, if available in TAC file.
See also: fit_feng, fit_suri, fit_gvar, fit2dat, tacframe, fitdt
Keywords: TAC, curve fitting