- Timestamp:
- Jun 9, 2013, 3:30:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psModules/src/objects/pmSourceFitModel.c
r35628 r35639 62 62 opt->poissonErrors = true; 63 63 opt->saveCovariance = false; 64 65 // we default to the old algorithm 66 opt->gainFactorMode = 0; 67 opt->chisqConvergence = true; 64 68 65 69 return opt; … … 241 245 242 246 psMinimization *myMin = psMinimizationAlloc (options->nIter, options->minTol, options->maxTol); 247 myMin->gainFactorMode = options->gainFactorMode; 248 myMin->chisqConvergence = options->chisqConvergence; 243 249 244 250 psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32); … … 274 280 model->flags |= PM_MODEL_STATUS_FITTED; 275 281 if (!fitStatus) model->flags |= PM_MODEL_STATUS_NONCONVERGE; 276 if (myMin->lastDelta > myMin->minTol) model->flags |= PM_MODEL_STATUS_WEAK_FIT; 282 283 if (myMin->chisqConvergence) { 284 if (myMin->lastDelta > myMin->minTol) model->flags |= PM_MODEL_STATUS_WEAK_FIT; 285 } else { 286 if (myMin->rParSigma > myMin->minTol*nParams) model->flags |= PM_MODEL_STATUS_WEAK_FIT; 287 } 277 288 278 289 // get the Gauss-Newton distance for fixed model parameters
Note:
See TracChangeset
for help on using the changeset viewer.
