Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class ElemT>
void Impala::Core::Histogram::Histogram1dTem< ElemT >::AddWeightSafe ( ElemT  value,
double  weight = 1. 
) [inline]

Definition at line 96 of file Histogram1dTem.h.

References Impala::Core::Vector::VectorTem< ElemT >::Elem(), Impala::Core::Histogram::Histogram1dTem< ElemT >::mOutliers, and Impala::Core::Histogram::Histogram1dTem< ElemT >::ValueToBin().

00097     {
00098         int index = ValueToBin(value);
00099         if (index<0 || index>=this->Size())
00100         {
00101             *mOutliers += weight;
00102         }
00103         else
00104             this->Elem(index) += weight;
00105     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:12:27 2010 for ImpalaSrc by  doxygen 1.5.1