- Timestamp:
- Mar 3, 2011, 3:11:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceFitModel.c
r30763 r30784 236 236 model->covar = psMemIncrRefCounter(covar); 237 237 } 238 model->nIter = myMin->iter; 239 model->nPar = nParams; 240 238 241 psTrace ("psModules.objects", 4, "niter: %d, chisq: %f", myMin->iter, myMin->value); 239 242 240 243 // save the resulting chisq, nDOF, nIter 244 // NOTE: if (!options->poissonErrors) chisq will be wrong : recalculate 241 245 if (options->poissonErrors) { 242 246 model->chisq = myMin->value; 243 247 model->nPix = y->n; 244 model->nDOF = y->n - nParams;248 model->nDOF = y->n - model->nPar; 245 249 model->chisqNorm = model->chisq / model->nDOF; 246 250 } else { 247 pmSourceChisq (model, source->pixels, source->maskObj, source->variance, maskVal, options->covarFactor, nParams); 248 } 249 model->nIter = myMin->iter; 251 pmSourceChisqUnsubtracted (source, model, maskVal); 252 } 250 253 251 254 // set the model success or failure status
Note:
See TracChangeset
for help on using the changeset viewer.
