- Timestamp:
- Jul 17, 2014, 12:30:45 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/psModules
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/objects (modified) (1 prop)
-
src/objects/pmSourceFitSet.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c 17 pmSourceIO_CMF_PS1_SV3.c 16 18 pmSourceIO_CMF_PS1_DV1.c 17 19 pmSourceIO_CMF_PS1_DV2.c 18 20 pmSourceIO_CMF_PS1_DV3.c 19 21 pmSourceIO_CMF_PS1_DV4.c
-
- Property svn:ignore
-
branches/eam_branches/ipp-ops-20130712/psModules/src/objects/pmSourceFitSet.c
r35768 r37066 32 32 #include "pmMoments.h" 33 33 #include "pmModelFuncs.h" 34 #include "pmModelClass.h" 34 35 #include "pmModel.h" 35 36 #include "pmModelUtils.h" 36 #include "pmModelClass.h"37 37 #include "pmSourceMasks.h" 38 38 #include "pmSourceExtendedPars.h" 39 39 #include "pmSourceDiffStats.h" 40 40 #include "pmSourceSatstar.h" 41 #include "pmSourceLensing.h" 41 42 #include "pmSource.h" 42 43 #include "pmSourcePhotometry.h" … … 222 223 float *paramOne = params + nParamBase; 223 224 float *betaOne = betas + nParamBase; 224 bool status = model-> modelLimits (mode, nParamOne, paramOne, betaOne);225 bool status = model->class->modelLimits (mode, nParamOne, paramOne, betaOne); 225 226 return status; 226 227 } … … 352 353 // set the model success or failure status 353 354 model->flags |= PM_MODEL_STATUS_FITTED; 354 if (!fitStatus) model->flags |= PM_MODEL_STATUS_NONCONVERGE; 355 if (!fitStatus) { 356 if (isnan(myMin->value)) { 357 model->flags |= PM_MODEL_STATUS_NAN_CHISQ; 358 } else { 359 model->flags |= PM_MODEL_STATUS_NONCONVERGE; 360 } 361 } 355 362 356 363 // models can go insane: reject these … … 381 388 psVector *derivOne = thisSet->derivSet->data[i]; 382 389 383 chisqOne = model-> modelFunc (derivOne, paramOne, x);390 chisqOne = model->class->modelFunc (derivOne, paramOne, x); 384 391 chisqSum += chisqOne; 385 392 } … … 570 577 myMin->gainFactorMode = options->gainFactorMode; 571 578 myMin->chisqConvergence = options->chisqConvergence; 579 myMin->isInteractive = options->isInteractive; 572 580 573 581 psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32);
Note:
See TracChangeset
for help on using the changeset viewer.
