33 double MaxllBoltz(
double *rig,
double *par) {
34 double intercept = par[3];
35 double wd =exp(1.0/par[2]);
37 if (rig[0]<intercept ) {
return 0.0;}
else {
41 if(par[0]!=0.0 && wd!=0.0) aa = 2.7182818*par[0]*wd;
42 if (wd>0.0 && (par[1]-intercept)>0.0 && ::log(par[1]-intercept)!=0.0) bb =
43 -1.0*(::log(wd))/::log(par[1]-intercept);
45 double mb=aa*(::pow((fabs(rig[0]) - fabs(intercept)),bb) * exp(-wd*::pow((fabs
46 (rig[0]) - fabs(intercept)),bb)));