Changeset 26705
- Timestamp:
- Jan 28, 2010, 4:29:36 AM (16 years ago)
- Location:
- branches/eam_branches/20091201/psphot/src
- Files:
-
- 3 edited
-
psphotEfficiency.c (modified) (1 diff)
-
psphotFake.c (modified) (1 diff)
-
psphotSignificanceImage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psphot/src/psphotEfficiency.c
r26266 r26705 33 33 34 34 psKernel *kernel = psImageSmoothKernel(smoothSigma, smoothNsigma); // Kernel used for smoothing 35 psKernel *newCovar = psImageCovarianceCalculate(kernel, ro->covariance); // Covariance matrix35 *covarFactor = psImageCovarianceCalculateFactor(kernel, ro->covariance); 36 36 psFree(kernel); 37 *covarFactor = psImageCovarianceFactor(newCovar); // Variance factor38 psFree(newCovar);39 37 40 38 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); // Statistics for variance -
branches/eam_branches/20091201/psphot/src/psphotFake.c
r26266 r26705 28 28 float smoothSigma = 0.5*(FWHM_X + FWHM_Y) / (2.0*sqrtf(2.0*log(2.0))); 29 29 psKernel *kernel = psImageSmoothKernel(smoothSigma, smoothNsigma); // Kernel used for smoothing 30 psKernel *newCovar = psImageCovarianceCalculate(kernel, readout->covariance); // Covariance matrix30 float factor = psImageCovarianceCalculateFactor(kernel, readout->covariance); // Covariance matrix 31 31 psFree(kernel); 32 float factor = psImageCovarianceFactor(newCovar); // Variance factor33 psFree(newCovar);34 32 35 33 psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); // Statistics for variance -
branches/eam_branches/20091201/psphot/src/psphotSignificanceImage.c
r25383 r26705 77 77 // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing 78 78 psKernel *kernel = psImageSmoothKernel(SIGMA_SMTH, NSIGMA_SMTH); // Kernel used for smoothing 79 psKernel *covar = psImageCovarianceCalculate(kernel, readout->covariance); // Covariance matrix79 float factor = 1.0 / psImageCovarianceCalculateFactor(kernel, readout->covariance); 80 80 psFree(kernel); 81 float factor = 1.0 / psImageCovarianceFactor(covar);82 psFree(covar);83 81 84 82 // record the effective area and significance scaling factor
Note:
See TracChangeset
for help on using the changeset viewer.
