Ignore:
Timestamp:
Sep 29, 2007, 1:49:05 AM (15 years ago)
Author:
Peter
Message:

using weighted_iterator_traits, closes #151

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/vector_distance.h

    r898 r909  
    88#include "yat/classifier/DataLookup1D.h"
    99#include "yat/classifier/DataLookupWeighted1D.h"
     10#include "yat/utility/IteratorTraits.h"
    1011
    1112namespace theplu {
     
    5152  double vector_distance(Iter1 beg1, Iter1 end1, Iter2 beg2, const Dist disttag)
    5253  {
    53     return vector_distance(beg1,end1,beg2,
    54                            typename vector_distance_traits<Dist>::distance(),
    55                            typename std::iterator_traits<Iter1>::iterator_category());
     54    return
     55      vector_distance(beg1,end1,beg2,
     56                      typename vector_distance_traits<Dist>::distance(),
     57                      typename utility::weighted_iterator_traits<Iter1>::type());
    5658  }       
    5759
Note: See TracChangeset for help on using the changeset viewer.