IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34158


Ignore:
Timestamp:
Jul 13, 2012, 4:51:54 PM (14 years ago)
Author:
eugene
Message:

merge from trunk: czw fix to mean variance of stack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20120626/psModules/src/imcombine/pmStack.c

    r31721 r34158  
    357357        sumWeight += weights->data.F32[i];
    358358        if (variances) {
    359             sumVarianceWeight += variances->data.F32[i] * PS_SQR(weights->data.F32[i]);
     359          //            sumVarianceWeight += variances->data.F32[i] * PS_SQR(weights->data.F32[i]);
     360          sumVarianceWeight += 1 / variances->data.F32[i];
    360361        }
    361362        if (exps) {
     
    372373    *mean = sumValueWeight / sumWeight;
    373374    if (var) {
    374         *var = sumVarianceWeight / PS_SQR(sumWeight);
     375      //*var = sumVarianceWeight / PS_SQR(sumWeight);
     376      *var = 1 / sumVarianceWeight;
    375377    }
    376378    if (exp) {
Note: See TracChangeset for help on using the changeset viewer.