26 int cal_perr(
float p[],
float y[],
const int nParam,
const int nData,
float perr[]);
46 void fgauss(
const float yd[],
50 std::vector<float>& res);
51 void dgauss(
const float p[],
const int npar,
const int ndat, std::vector<float>& dydp);
52 float cal_xi2(
const std::vector<float>& res,
const int ndat);
54 const std::vector<float>& dydp,
57 std::vector<float>& beta,
58 std::vector<float>& alpha);
60 const std::vector<float>& alpha,
62 std::vector<float>& dp);
63 float invrt_matrix(std::vector<float>& alphaf,
const int npar);
void solve_matrix(const std::vector< float > &beta, const std::vector< float > &alpha, const int npar, std::vector< float > &dp)
int mrqdtfit(float &lambda, float p[], float y[], const int nParam, const int nData, float &chiSqr, float &dchiSqr)
int cal_perr(float p[], float y[], const int nParam, const int nData, float perr[])
void fgauss(const float yd[], const float p[], const int npar, const int ndat, std::vector< float > &res)
float cal_xi2(const std::vector< float > &res, const int ndat)
void dgauss(const float p[], const int npar, const int ndat, std::vector< float > &dydp)
float invrt_matrix(std::vector< float > &alphaf, const int npar)
void setup_matrix(const std::vector< float > &res, const std::vector< float > &dydp, const int npar, const int ndat, std::vector< float > &beta, std::vector< float > &alpha)