Changeset 15802
- Timestamp:
- Dec 12, 2007, 6:07:17 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceSize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceSize.c
r15077 r15802 53 53 float nR = cR / sqrt(dcR); 54 54 55 float chisq = PS_SQR (nX) + PS_SQR (nY) + PS_SQR (nX) + PS_SQR (nR);56 57 55 // P(chisq > chisq_obs; Ndof) = gamma_Q (Ndof/2, chisq/2) 58 56 // Ndof = 4 ? (four measurements, no free parameters) 59 57 // XXX this value is going to be biased low because of systematic errors. 60 58 // we need to calibrate it somehow 61 source->psfProb = gsl_sf_gamma_inc_Q (2, 0.5*chisq); 59 // source->psfProb = gsl_sf_gamma_inc_Q (2, 0.5*chisq); 60 61 // not strictly accurate: overcounts the chisq contribution from the center pixel (by factor of 4) 62 source->psfChisq = PS_SQR (nX) + PS_SQR (nY) + PS_SQR (nX) + PS_SQR (nR); 62 63 63 64 float fCR = 0.0; … … 94 95 } 95 96 source->crNsigma = (nCR > 0) ? fCR / nCR : 0.0; 96 source->extNsigma = (nEXT > 0) ? fEXT / nEXT : 0.0; 97 source->extNsigma = (nEXT > 0) ? fabs(fEXT) / nEXT : 0.0; 98 // NOTE: abs needed to make the Nsigma value positive 97 99 } 98 100 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
