Changeset 25955 for branches/pap/ppStack/src/ppStackConvolve.c
- Timestamp:
- Oct 27, 2009, 1:31:32 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppStack/src/ppStackConvolve.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackConvolve.c
r25911 r25955 42 42 options->convCovars = psArrayAlloc(num); // Covariance matrices 43 43 44 psVector *renorms = psVectorAlloc(num, PS_TYPE_F32); // Renormalisation values for variances 45 psVectorInit(renorms, NAN); 46 44 47 psList *fpaList = psListAlloc(NULL); // List of input FPAs, for concept averaging 45 48 psList *cellList = psListAlloc(NULL); // List of input cells, for concept averaging … … 88 91 } 89 92 options->convCovars->data[i] = psMemIncrRefCounter(readout->covariance); 93 94 float renorm = psMetadataLookupF32(NULL, readout->analysis, PM_READOUT_ANALYSIS_RENORM); 95 if (!isfinite(renorm)) { 96 renorm = 1.0; 97 } 98 renorms->data.F32[i] = renorm; 90 99 91 100 if (options->stats) { … … 234 243 } 235 244 245 // Correct chi^2 for renormalisation 246 psBinaryOp(options->matchChi2, options->matchChi2, "/", renorms); 247 psFree(renorms); 248 236 249 return true; 237 250 }
Note:
See TracChangeset
for help on using the changeset viewer.
