#include "nr.h" void NR::mrqmin(Vec_I_DP &x, Vec_I_DP &y, Vec_I_DP &sig, Vec_IO_DP &a, Vec_I_BOOL &ia, Mat_O_DP &covar, Mat_O_DP &alpha, DP &chisq, void funcs(const DP, Vec_I_DP &, DP &, Vec_O_DP &), DP &alamda) { static int mfit; static DP ochisq; int j,k,l; int ma=a.size(); static Mat_DP *oneda_p; static Vec_DP *atry_p,*beta_p,*da_p; if (alamda < 0.0) { atry_p = new Vec_DP(ma); beta_p = new Vec_DP(ma); da_p = new Vec_DP(ma); mfit=0; for (j=0;j