Changeset 1507 for trunk


Ignore:
Timestamp:
Sep 17, 2008, 1:13:44 AM (13 years ago)
Author:
Peter
Message:

preparing for weighted version - refs #437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/normalizer/Spearman.h

    r1497 r1507  
    5656                                    RandomAccessIterator result) const
    5757    {
    58       utility::check_iterator_is_unweighted(first);
     58      typename utility::weighted_iterator_traits<InputIterator>::type tag;
     59      return normalize(first, last, result, tag);
     60    }
     61
     62
     63  private:
     64    // unweighted version
     65    template<typename InputIterator, typename RandomAccessIterator>
     66    RandomAccessIterator normalize(InputIterator first, InputIterator last,
     67                                   RandomAccessIterator result,
     68                                   utility::unweighted_iterator_tag) const
     69    {
    5970      std::vector<size_t> perm;
    6071      utility::sort_index(first, last, perm);
     
    6576    }
    6677
    67   private:
    6878  };
    6979
Note: See TracChangeset for help on using the changeset viewer.