Changeset 42719 for branches/2dbias/psModules/src/detrend/pmOverscan.c
- Timestamp:
- Sep 13, 2024, 10:19:51 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2dbias/psModules/src/detrend/pmOverscan.c
r42717 r42719 415 415 // Reduce the overscans 416 416 // XXX need to save 2 different chi-square values 417 psVector *yReduced = pmOverscanVector(&chi2, overscanOpts->primary, yscanPixels, false);417 psVector *yReduced = pmOverscanVector(&chi2, overscanOpts->primary, yscanPixels, true); 418 418 psFree(yscanPixels); 419 419 if (!yReduced) … … 453 453 } 454 454 // Now normVector holds the sliced data; then, compute its robust mean 455 psStatsOptions statistic = PS_STAT_ CLIPPED_MEAN;455 psStatsOptions statistic = PS_STAT_ROBUST_MEDIAN; 456 456 psStats *stats = psStatsAlloc(statistic); 457 457 if (!psVectorStats(stats, normVector, NULL, NULL, 0)) 458 458 { 459 psError(PS_ERR_UNKNOWN, false, "failure to measure clipped mean asnormalization of xReduced");459 psError(PS_ERR_UNKNOWN, false, "failure to measure robust median as the normalization of xReduced"); 460 460 psFree(stats); 461 461 psFree(normVector);
Note:
See TracChangeset
for help on using the changeset viewer.
