#include "nr.h" void NR::lfit(Vec_I_DP &x, Vec_I_DP &y, Vec_I_DP &sig, Vec_IO_DP &a, Vec_I_BOOL &ia, Mat_O_DP &covar, DP &chisq, void funcs(const DP, Vec_O_DP &)) { int i,j,k,l,m,mfit=0; DP ym,wt,sum,sig2i; int ndat=x.size(); int ma=a.size(); Vec_DP afunc(ma); Mat_DP beta(ma,1); for (j=0;j