Changeset 12928 for trunk


Ignore:
Timestamp:
02/23/12 12:11:33 (13 years ago)
Author:
tbretz
Message:
Fixed median calculation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mgui/MCamEvent.cc

    r12920 r12928  
    6565Double_t MCamEvent::GetCameraMedian(const MGeomCam &cam, Int_t type) const
    6666{
    67     Int_t    num = 0;
    68     Double_t sum = 0;
    69     Double_t sq  = 0;
     67    Int_t num = 0;
    7068
    7169    MArrayD arr(cam.GetNumPixels());
     
    7674            continue;
    7775
    78         arr[i] = val;
    79         num ++;
     76        arr[num++] = val;
    8077    }
    8178
Note: See TracChangeset for help on using the changeset viewer.