CALL HFITHN (ID,CHFUN,CHOPT,NP,*PAR*,STEP,PMIN,PMAX,SIGPAR*,CHI2*)
Action: Fits the given special function to the contents of a one-dimensional histogram, and optionally superimposes it to the histogram when editing.
PAR(1)*exp(-0.5*((x-PAR(2))/PAR(3))**2)
.PAR(1)
corresponds to the normalization,
the second parameter PAR(2)
corresponds to the mean value, while
the third parameter PAR(3)
corresponds to the half width of the
gaussian.
exp(PAR(1)+PAR(2)*x)
PAR(1)+PAR(2)*x+PAR(3)*x**2......+PAR(n+1)*x**n
+
or *
is allowed, e.g. 'p4+g'
, a combination of a 4th degree polynomial
and a gaussian, which needs eight parameters or
p2*g+g
, a second degree polynomyal and 2 gaussians,
needing 9 parameters.
The order of the parameters in PAR
must
correspond to the order of the basic functions.
For example, in the first case above, PAR(1:5)
apply to
the polynomial of degree 4 and PAR(6:8)
to the gaussian while
in the second case PAR(1:3)
apply to the polynomial of degree 2,
PAR(4:6)
to the first gaussian and PAR(7:9)
to the second gaussian.
Blanks are not allowed in the expression.
STEP
, PMIN
and PMAX
must be specified.
By default all parameters vary freely.
IFTLOW = IQUEST(11)
specifies the lower limit of the minimization domain,IFTUP = IQUEST(12)
specifies the upper limit of the minimization domain.
NP
with initial values for
the parameters.
NP
with initial step sizes
for the parameters ('B'
option only).
NP
with the lower bounds
for the parameters ('B'
option only).
NP
with the upper bounds
for the parameters ('B'
option only).
NP
with the final fitted values
of the parameters.
NP
with the standard deviations
on the final fitted values of the parameters.