#include "nr.h" void NR::mrqcof(Vec_I_DP &x, Vec_I_DP &y, Vec_I_DP &sig, Vec_I_DP &a, Vec_I_BOOL &ia, Mat_O_DP &alpha, Vec_O_DP &beta, DP &chisq, void funcs(const DP, Vec_I_DP &,DP &, Vec_O_DP &)) { int i,j,k,l,m,mfit=0; DP ymod,wt,sig2i,dy; int ndata=x.size(); int ma=a.size(); Vec_DP dyda(ma); for (j=0;j