Definition at line 908 of file ShotSegmenter.h. References Impala::Core::Vector::VectorTem< ElemT >::Elem(), Impala::Core::Vector::VectorTem< ElemT >::Size(), and Impala::Core::Histogram::Histogram1dTem< ElemT >::TotalWeight(). Referenced by UpdateHistograms(). 00909 { 00910 for(int i=0;i<h->Size();i++){ 00911 Real64 tot = h->TotalWeight(); 00912 Real64 cum = 0; 00913 for(int i=0 ; i<h->Size() ; i++) 00914 { 00915 cum += h->Elem(i); 00916 h->Elem(i) = cum / tot; 00917 } 00918 } 00919 }
Here is the call graph for this function:
|