Changeset 35768 for trunk/psModules/src/objects/pmSourceFitModel.c
- Timestamp:
- Jul 3, 2013, 2:37:22 PM (13 years ago)
- Location:
- trunk/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/objects/pmSourceFitModel.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20130509/psModules (added) merged: 35594,35613,35628,35638-35639,35643-35648,35653,35657,35662,35750
- Property svn:mergeinfo changed
-
trunk/psModules/src/objects/pmSourceFitModel.c
r35560 r35768 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); … … 252 258 } 253 259 if (options->saveCovariance) { 260 psFree (model->covar); 254 261 model->covar = psMemIncrRefCounter(covar); 255 262 } … … 273 280 model->flags |= PM_MODEL_STATUS_FITTED; 274 281 if (!fitStatus) model->flags |= PM_MODEL_STATUS_NONCONVERGE; 275 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 } 276 288 277 289 // get the Gauss-Newton distance for fixed model parameters
Note:
See TracChangeset
for help on using the changeset viewer.
