Revision 400 trunk/test/priors/priors.cpp

priors.cpp (revision 400)
30 30
  *  Quantitative Fisheries Center(QFC), Michigan State University
31 31
  */
32 32

  
33
  #if !defined(__QFC_EST__)
33 34
  #define __QFC_EST__
34
  #if !defined(__QFC_SIM__) //only include the following header file and constants once
35 35
    #include <math.h>
36 36
    #include <admodel.h>
37 37
    #include <df1b2fun.h>
38 38
    #include <adrndeff.h>
39 39
    // define constant variable
40 40
    const double EPS = 1.e-30;          //tiny number to avoid 0 in log
41
  #endif
41
  
42 42

  
43 43

  
44 44

  
......
2194 2194
    nll= - n*a*log(b)+ n*gammln(a)  -(a-1.)*sum(log(x+EPS)) + b/sum(x+EPS);
2195 2195
    return nll;
2196 2196
  }
2197

  
2198
  #endif

Also available in: Unified diff