-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmnstat.F
45 lines (45 loc) · 1.45 KB
/
mnstat.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
*
* $Id: mnstat.F,v 1.1.1.1 2000/06/08 11:19:20 andras Exp $
*
* $Log: mnstat.F,v $
* Revision 1.1.1.1 2000/06/08 11:19:20 andras
* import of MINUIT from CERNlib 2000
*
* Revision 1.1.1.1 1996/03/07 14:31:31 mclareni
* Minuit
*
*
#include "minuit/pilot.h"
SUBROUTINE MNSTAT(FMIN,FEDM,ERRDEF,NPARI,NPARX,ISTAT)
#include "minuit/d506dp.inc"
CC User-called
CC Provides the user with information concerning the current status
CC of the current minimization. Namely, it returns:
CC FMIN: the best function value found so far
CC FEDM: the estimated vertical distance remaining to minimum
CC ERRDEF: the value of UP defining parameter uncertainties
CC NPARI: the number of currently variable parameters
CC NPARX: the highest (external) parameter number defined by user
CC ISTAT: a status integer indicating how good is the covariance
CC matrix: 0= not calculated at all
CC 1= approximation only, not accurate
CC 2= full matrix, but forced positive-definite
CC 3= full accurate covariance matrix
CC
#include "minuit/d506cm.inc"
FMIN = AMIN
FEDM = EDM
ERRDEF = UP
NPARI = NPAR
NPARX = NU
ISTAT = ISW(2)
IF (EDM .EQ. BIGEDM) THEN
FEDM = UP
ENDIF
IF (AMIN .EQ. UNDEFI) THEN
FMIN = 0.0
FEDM = UP
ISTAT= 0
ENDIF
RETURN
END