IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2011, 10:33:39 AM (15 years ago)
Author:
eugene
Message:

optionally save the covariance matrix with model fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmSourceFitModel.c

    r29004 r30705  
    5959    opt->maxChisqDOF = NAN;
    6060    opt->poissonErrors = true;
     61    opt->saveCovariance = false;
    6162
    6263    return opt;
     
    231232        psTrace ("psModules.objects", 4, "%f +/- %f", params->data.F32[i], dparams->data.F32[i]);
    232233    }
     234    if (options->saveCovariance) {
     235        model->covar = psMemIncrRefCounter(covar);
     236    }
    233237    psTrace ("psModules.objects", 4, "niter: %d, chisq: %f", myMin->iter, myMin->value);
    234238
Note: See TracChangeset for help on using the changeset viewer.