Changeset 900 for trunk/yat/statistics


Ignore:
Timestamp:
Sep 27, 2007, 9:10:33 AM (14 years ago)
Author:
Markus Ringnér
Message:

Refs #251. Fixed so the unweighted distances are at the forward-iterator level. To test this I added a distance calculation between a list and a vector in vector_distance_test (also fixed its indentation)

Location:
trunk/yat/statistics
Files:
2 edited

Legend:

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

    r899 r900  
    3434  double vector_distance(Iter1 beg1,Iter1 end1, Iter2 beg2,
    3535                         const euclidean_vector_distance_tag& disttype,
    36                          std::random_access_iterator_tag)
     36                         std::forward_iterator_tag)
    3737  {
    3838    AveragerPair ap;
  • trunk/yat/statistics/pearson_vector_distance.h

    r898 r900  
    3333  double vector_distance(Iter beg1,Iter end1, Iter beg2,
    3434                         const pearson_vector_distance_tag& disttype,
    35                          std::random_access_iterator_tag)
     35                         std::forward_iterator_tag)
    3636  {
    3737    AveragerPair ap;
Note: See TracChangeset for help on using the changeset viewer.