template<class ElemT>
Definition at line 16 of file HistogramIntersection2.h. References Max(), max, Min(), min, and Impala::Core::Vector::VectorTem< ElemT >::Size(). 00017 { 00018 Real64 score = 0; 00019 for (int i=0 ; i<v1.Size() ; i++){ 00020 Real64 min= Min(v1[i], v2[i]); 00021 Real64 max= Max(v1[i],v2[i]); 00022 if(max!=0) 00023 score += min/max; 00024 else 00025 score +=1; 00026 } 00027 return score; 00028 }
Here is the call graph for this function:
|