SCULIB_FIT_D2XISQ_DAJK

calculate differential of chi-squared with respect to fit parameters J and K

Description:

If status is good on entry this routine will calculate the differential of chi-squared with respect to A(J) and A(K). It does this numerically by calling the supplied routine XISQ_ROUTINE to calculate chi-squared at [A(J)+DELTA_AJ,A(K)+DELTA_AK], [A(J)-DELTA_AJ,A(K)+DELTA_AK], [A(J)+DELTA_AJ,A(K)-DELTA_AK] and [A(J)-DELTA_AJ,A(K)-DELTA_AK]. The result is then calculated using the formula:-
2χ2 AJAK =χ2(AJ + δAJ, AK + δAK) χ2(AJδAJ, AK + δAK) χ2(AJδAJ, AK + δAK) + χ2(AJδAJ, AKδAK) 4δAJδAK (42)

DELTA_AJ is equal to the absolute value of 0.001 A(J) or, if this is zero, 0.001. DELTA_AK is calculated in a similar way.

Invocation

CALL SCULIB_FIT_D2XISQ_DAJK (XISQ_ROUTINE, N, A, J, K, D2XISQ_DAJK, STATUS)

Arguments

XISQ_ROUTINE (XISQ, N, A, STATUS) = EXTERNAL ROUTINE (Given)
name of routine that will calculate xi-squared
N = INTEGER (Given)
the number of parameters in the fit
A(N) = DOUBLE PRECISION (Given and returned)
the fit parameters
J = INTEGER (Given)
the index of the first parameter to be varied
K = INTEGER (Given)
the index of the second parameter to be varied
D2XISQ_DAJK = DOUBLE PRECISION (Returned)
the differential of chi-squared with respect to A(J) and A(K)
STATUS = INTEGER (Given and returned)
global status

Copyright

Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.