Changeset 891 for trunk/yat/statistics
 Timestamp:
 Sep 25, 2007, 4:26:33 PM (14 years ago)
 Location:
 trunk/yat/statistics
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/statistics/euclidean_vector_distance.h
r890 r891 31 31 /// distance measure and iterators to unweighted containers. 32 32 /// 33 template < class Iter>34 double vector_distance(Iter beg1,Iter end1, Iterbeg2,33 template <typename Iter1, typename Iter2> 34 double vector_distance(Iter1 beg1,Iter1 end1, Iter2 beg2, 35 35 const euclidean_vector_distance_tag& disttype, 36 36 std::random_access_iterator_tag) … … 47 47 /// distance measure and iterators to weighted containers. 48 48 /// 49 template < class Iter>50 double vector_distance(Iter beg1,Iter end1, Iterbeg2,49 template <typename Iter1, typename Iter2> 50 double vector_distance(Iter1 beg1, Iter1 end1, Iter2 beg2, 51 51 const euclidean_vector_distance_tag& disttype, 52 52 std::weighted_random_access_iterator_tag) 
trunk/yat/statistics/vector_distance.h
r889 r891 43 43 /// (templatized as Dist). It can also call separate implementations 44 44 /// for iterators to weighted and unweighted iterators based on the 45 /// trait of the iterator (templatized as Iter).45 /// trait of the iterators (templatized as Iter1 and Iter2). 46 46 /// 47 template <typename Iter , typename Dist>48 double vector_distance(Iter beg1, Iter end1, Iter beg2, const Dist&disttag)47 template <typename Iter1, typename Iter2, typename Dist> 48 double vector_distance(Iter1 beg1, Iter1 end1, Iter2 beg2, const Dist disttag) 49 49 { 50 return vector_distance(beg1,end1,beg2,typename vector_distance_traits<Dist>::distance(), 51 typename std::iterator_traits<Iter>::iterator_category()); 50 return vector_distance(beg1,end1,beg2, 51 typename vector_distance_traits<Dist>::distance(), 52 typename std::iterator_traits<Iter1>::iterator_category()); 52 53 } 53 54 55 // Temporary function of where I end up when calling with a reference to distance_tag 56 template <typename Iter1, typename Iter2> 57 double vector_distance(Iter1 beg1, Iter1 end1, Iter2 beg2, 58 const vector_distance_tag& disttag) 59 { 60 std::cout << "Hello" << std::endl; 61 return 0; 62 } 63 64 54 65 }}} // of namespace statistics, yat, and theplu 55 66 56 67 #endif
Note: See TracChangeset
for help on using the changeset viewer.