Ignore:
Timestamp:
Sep 25, 2007, 11:35:25 AM (14 years ago)
Author:
Markus Ringnér
Message:

Refs #245 #246 #247

File:
1 edited

Legend:

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

    r889 r890  
    3939  }
    4040 
     41  ///
     42  /// implementation for distances between vectors
     43  /// (containers with random access iterators) using a Pearson
     44  /// distance measure and iterators to unweighted containers.
     45  ///
     46  template <class Iter>
     47  double vector_distance(Iter beg1,Iter end1, Iter beg2,
     48                         const pearson_vector_distance_tag& disttype,
     49                         std::weighted_random_access_iterator_tag)
     50  {
     51    AveragerPairWeighted ap;
     52    add(ap,beg1,end1,beg2);
     53    return 1-ap.correlation();
     54  }
     55
    4156 
    4257}}} // of namespace statistics, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.